[rpc/security] fix bot token header name

This commit is contained in:
41666 2019-04-14 12:58:34 -05:00
parent a273292d97
commit e8f0579024
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF

View file

@ -130,7 +130,7 @@ export const bot = (
ctx: Context,
...args: any
) => {
const authToken: ?string = ctx.request.headers['Authorization']
const authToken: ?string = ctx.request.headers['authorization']
if (authToken != null && authToken.startsWith('Bot ')) {
if (authToken === `Bot ${$.config.sharedSecret}`) {