mirror of
https://github.com/Harry-zklcdc/go-proxy-bingai.git
synced 2024-05-03 14:25:13 +08:00
fix: 🐛 一般无 content-length
This commit is contained in:
parent
6510812ef2
commit
1f3a65df2d
@ -140,7 +140,7 @@ async function tryCreateConversationId(trycount = 0) {
|
||||
const conversationRes = await fetch('/turing/conversation/create', {
|
||||
credentials: 'include',
|
||||
}).then(async (res) => {
|
||||
if (res.status === 200 && +res.headers.get('content-length') > 0) {
|
||||
if (res.status === 200 && res.body && !res.body.locked) {
|
||||
return await res.json();
|
||||
} else {
|
||||
return 'error';
|
||||
|
Loading…
Reference in New Issue
Block a user