diff --git a/src/lib/fetch.ts b/src/lib/fetch.ts index 830e48fb3..72a9f381a 100644 --- a/src/lib/fetch.ts +++ b/src/lib/fetch.ts @@ -30,7 +30,7 @@ export async function fetch(url: URL | RequestInfo, init?: RequestInit) { if (resp.ok) { // Parse the response as JSON if the content type is JSON - if (contentType === "application/json") { + if (contentType.includes("application/json")) { data = await resp.json(); } else { // Otherwise, return however the response was read