Skip to content

Commit

Permalink
Merge pull request #95 from ahjsrhj/main
Browse files Browse the repository at this point in the history
feat: ws反代请求添加UA: OneBot/11
  • Loading branch information
MliKiowa committed Jul 1, 2024
2 parents b6db372 + 4c7ed01 commit 9c422c1
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 9c422c1

Please sign in to comment.