Comparing version 8.0.2 to 8.0.3
@@ -69,12 +69,12 @@ "use strict"; | ||
var responseType = response.type(); | ||
if (typeof body !== 'string') { | ||
throw request.error("Unable to parse non-string response body", 'EPARSE'); | ||
} | ||
if (responseType == null) { | ||
throw request.error("Unable to parse invalid response content type", 'EPARSE'); | ||
} | ||
if (body === '') { | ||
if (body == null || body === '') { | ||
response.body = null; | ||
return response; | ||
} | ||
if (typeof body !== 'string') { | ||
throw request.error("Unable to parse non-string response body", 'EPARSE'); | ||
} | ||
for (var _i = 0, types_2 = types; _i < types_2.length; _i++) { | ||
@@ -81,0 +81,0 @@ var type_2 = types_2[_i]; |
{ | ||
"name": "popsicle", | ||
"version": "8.0.2", | ||
"version": "8.0.3", | ||
"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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
233231
56
0
408