whatwg-fetch
Advanced tools
Comparing version 3.6.16 to 3.6.17
@@ -546,11 +546,6 @@ (function (global, factory) { | ||
xhr.onload = function() { | ||
var responseHeaders = xhr.getAllResponseHeaders(); | ||
var setCookie = xhr.getResponseHeader('set-cookie'); | ||
if (setCookie) { | ||
responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', ')); | ||
} | ||
var options = { | ||
status: xhr.status, | ||
statusText: xhr.statusText, | ||
headers: parseHeaders(responseHeaders || '') | ||
headers: parseHeaders(xhr.getAllResponseHeaders() || '') | ||
}; | ||
@@ -557,0 +552,0 @@ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); |
@@ -540,11 +540,6 @@ /* eslint-disable no-prototype-builtins */ | ||
xhr.onload = function() { | ||
var responseHeaders = xhr.getAllResponseHeaders(); | ||
var setCookie = xhr.getResponseHeader('set-cookie'); | ||
if (setCookie) { | ||
responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', ')); | ||
} | ||
var options = { | ||
status: xhr.status, | ||
statusText: xhr.statusText, | ||
headers: parseHeaders(responseHeaders || '') | ||
headers: parseHeaders(xhr.getAllResponseHeaders() || '') | ||
} | ||
@@ -551,0 +546,0 @@ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL') |
{ | ||
"name": "whatwg-fetch", | ||
"description": "A window.fetch polyfill.", | ||
"version": "3.6.16", | ||
"version": "3.6.17", | ||
"main": "./dist/fetch.umd.js", | ||
@@ -6,0 +6,0 @@ "module": "./fetch.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56866
1125