Skip to content

Commit

Permalink
fix: cookie同步问题
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 23, 2023
1 parent f932e81 commit 34616a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/bots/bing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ export class BingWebBot {
if (response.status === 404) {
throw new ChatError('Not Found', ErrorCode.NOTFOUND_ERROR)
}
if (response.headers.has('cookie')) {
this.cookie = response.headers.get('cookie')!
}
resp = await response.json() as ConversationResponse
} catch (err) {
console.error('create conversation error', err)
Expand Down

0 comments on commit 34616a4

Please sign in to comment.