Comparing version 8.0.3 to 8.0.4
@@ -69,5 +69,2 @@ "use strict"; | ||
var responseType = response.type(); | ||
if (responseType == null) { | ||
throw request.error("Unable to parse invalid response content type", 'EPARSE'); | ||
} | ||
if (body == null || body === '') { | ||
@@ -77,2 +74,5 @@ response.body = null; | ||
} | ||
if (responseType == null) { | ||
throw request.error("Unable to parse invalid response content type", 'EPARSE'); | ||
} | ||
if (typeof body !== 'string') { | ||
@@ -79,0 +79,0 @@ throw request.error("Unable to parse non-string response body", 'EPARSE'); |
{ | ||
"name": "popsicle", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"description": "Simple HTTP requests for node and the browser", | ||
@@ -5,0 +5,0 @@ "main": "dist/common.js", |
Sorry, the diff of this file is not supported yet
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