diff --git a/fetch.js b/fetch.js index c4162dae..1dd698d9 100644 --- a/fetch.js +++ b/fetch.js @@ -589,7 +589,7 @@ export function fetch(input, init) { } } - if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { + if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g.Headers && init.headers instanceof g.Headers))) { Object.getOwnPropertyNames(init.headers).forEach(function(name) { xhr.setRequestHeader(name, normalizeValue(init.headers[name])) })