Comparing version 1.5.0 to 1.6.0
@@ -41,4 +41,6 @@ var window = require("global/window") | ||
isJson = true | ||
headers["Content-Type"] = "application/json" | ||
body = JSON.stringify(options.json) | ||
if (method !== "GET" && method !== "HEAD") { | ||
headers["Content-Type"] = "application/json" | ||
body = JSON.stringify(options.json) | ||
} | ||
} | ||
@@ -64,3 +66,3 @@ | ||
if ( xhr.setRequestHeader) { | ||
if (xhr.setRequestHeader) { | ||
Object.keys(headers).forEach(function (key) { | ||
@@ -67,0 +69,0 @@ xhr.setRequestHeader(key, headers[key]) |
{ | ||
"name": "xhr", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "small xhr abstraction", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
9011
109