whatwg-fetch
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -306,5 +306,3 @@ (function(self) { | ||
if (typeof input === 'string') { | ||
this.url = input | ||
} else { | ||
if (input instanceof Request) { | ||
if (input.bodyUsed) { | ||
@@ -324,2 +322,4 @@ throw new TypeError('Already read') | ||
} | ||
} else { | ||
this.url = String(input) | ||
} | ||
@@ -360,3 +360,3 @@ | ||
var headers = new Headers() | ||
rawHeaders.split('\r\n').forEach(function(line) { | ||
rawHeaders.split(/\r?\n/).forEach(function(line) { | ||
var parts = line.split(':') | ||
@@ -363,0 +363,0 @@ var key = parts.shift().trim() |
{ | ||
"name": "whatwg-fetch", | ||
"description": "A window.fetch polyfill.", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "fetch.js", | ||
@@ -6,0 +6,0 @@ "repository": "github/fetch", |
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
22685