Skip to content

Commit

Permalink
feat: ws反代请求添加UA: OneBot/11
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjsrhj committed Jul 1, 2024
1 parent 45c922c commit 4c7ed01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/onebot11/server/ws/ReverseWebsocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c7ed01

Please sign in to comment.