diff --git a/source/core/Ky.ts b/source/core/Ky.ts index c6dcd9b5..ce495277 100644 --- a/source/core/Ky.ts +++ b/source/core/Ky.ts @@ -101,7 +101,7 @@ export class Ky { return options.parseJson(await response.text()); } - if (response.headers.get('accept')?.startsWith('text')) { + if (ky.request.headers.get('accept')?.startsWith('text')) { return response.text(); } }