mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 17:43:25 +00:00
Fix fetcher tests
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user