mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
feat: add ua to reverse websocket headers
This commit is contained in:
parent
f150ae478b
commit
b658d164f9
@ -85,6 +85,7 @@ export class ReverseWebsocket {
|
|||||||
'X-Self-ID': selfInfo.uin,
|
'X-Self-ID': selfInfo.uin,
|
||||||
Authorization: `Bearer ${token}`,
|
Authorization: `Bearer ${token}`,
|
||||||
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
|
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
|
||||||
|
'User-Agent': 'LLOneBot',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
registerWsEventSender(this.websocket)
|
registerWsEventSender(this.websocket)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user