whatwg-fetch
Advanced tools
Comparing version 3.6.15 to 3.6.16
@@ -546,6 +546,11 @@ (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(xhr.getAllResponseHeaders() || '') | ||
headers: parseHeaders(responseHeaders || '') | ||
}; | ||
@@ -552,0 +557,0 @@ options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); |
@@ -540,6 +540,11 @@ /* 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(xhr.getAllResponseHeaders() || '') | ||
headers: parseHeaders(responseHeaders || '') | ||
} | ||
@@ -546,0 +551,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.15", | ||
"version": "3.6.16", | ||
"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
57340
1135