feat: ws反代请求添加UA: OneBot/11

This commit is contained in:
ahjsrhj 2024-07-01 11:19:15 +08:00
parent 45c922c377
commit 4c7ed01776

View File

@ -87,6 +87,7 @@ export class ReverseWebsocket {
'X-Self-ID': selfInfo.uin,
'Authorization': `Bearer ${token}`,
'x-client-role': 'Universal', // koishi-adapter-onebot 需要这个字段
"User-Agent": "OneBot/11",
}
});
registerWsEventSender(this.websocket);