From 572de3e054fc32f12adffd69f5de244c6c0408f3 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Tue, 18 Jul 2023 02:22:30 +0100 Subject: [PATCH] fix https://github.com/JakeChampion/fetch/issues/997 --- fetch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fetch.js b/fetch.js index 9088c484..001ffeff 100644 --- a/fetch.js +++ b/fetch.js @@ -587,9 +587,7 @@ export function fetch(input, init) { if (support.blob) { xhr.responseType = 'blob' } else if ( - support.arrayBuffer && - request.headers.get('Content-Type') && - request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1 + support.arrayBuffer ) { xhr.responseType = 'arraybuffer' }