fix: 🐛 一般无 content-length

This commit is contained in:
adams549659584 2023-05-06 11:29:40 +08:00
parent 6510812ef2
commit 1f3a65df2d
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ async function tryCreateConversationId(trycount = 0) {
const conversationRes = await fetch('/turing/conversation/create', { const conversationRes = await fetch('/turing/conversation/create', {
credentials: 'include', credentials: 'include',
}).then(async (res) => { }).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(); return await res.json();
} else { } else {
return 'error'; return 'error';

View File

@ -56,7 +56,7 @@ workbox.precaching.precacheAndRoute([
}, },
{ {
url: '/web/js/index.js', url: '/web/js/index.js',
revision: '2023.05.06', revision: '2023.05.06.11',
}, },
// html // html
{ {