diff --git a/src/core.ts b/src/core.ts index ce97181e..7b5a97bb 100644 --- a/src/core.ts +++ b/src/core.ts @@ -62,7 +62,9 @@ async function defaultParseResponse(props: APIResponseProps): Promise { } const contentType = response.headers.get('content-type'); - if (contentType?.includes('application/json')) { + const isJSON = + contentType?.includes('application/json') || contentType?.includes('application/vnd.api+json'); + if (isJSON) { const json = await response.json(); debug('response', response.status, response.url, response.headers, json);