Fix fetcher tests

This commit is contained in:
mrjvs
2023-12-26 16:02:25 +01:00
parent ffe7ae0985
commit 4eaae64e4a
3 changed files with 30 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ export function makeStandardFetcher(f: FetchLike): Fetcher {
let body: any;
const isJson = res.headers.get('content-type')?.includes('application/json');
if (isJson) body = await res.json();
else body = res.text();
else body = await res.text();
return {
body,