From 34616a43ea7a7592bbbb67a1f847aa6eb85f3669 Mon Sep 17 00:00:00 2001 From: weaigc <879821485@qq.com> Date: Sun, 24 Sep 2023 01:24:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cookie=E5=90=8C=E6=AD=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/bots/bing/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/bots/bing/index.ts b/src/lib/bots/bing/index.ts index 23cf1d30..c12bc0d5 100644 --- a/src/lib/bots/bing/index.ts +++ b/src/lib/bots/bing/index.ts @@ -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)