Merge pull request #5719 from ConnectAI-E/hotfix/status_text_error

hotfix for statusText is non ISO-8859-1 #5717
This commit is contained in:
Lloyd Zhou
2024-10-25 20:34:15 +08:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@@ -100,7 +100,8 @@ export function fetch(url: string, options?: RequestInit): Promise<any> {
})
.catch((e) => {
console.error("stream error", e);
throw e;
// throw e;
return new Response("", { status: 599 });
});
}
return window.fetch(url, options);