Comparing version 5.2.0 to 5.2.1
@@ -295,3 +295,4 @@ "use strict"; | ||
this.body = await concat(this.response); | ||
let json = this.response.headers['content-type'] && deps_1.deps.contentType.parse(this.response).type.startsWith('application/json'); | ||
let type = this.response.headers['content-type'] ? deps_1.deps.contentType.parse(this.response).type : ''; | ||
let json = type.startsWith('application/json') || type.startsWith('application/vnd.api+json'); | ||
if (json) | ||
@@ -298,0 +299,0 @@ this.body = JSON.parse(this.body); |
{ | ||
"name": "http-call", | ||
"description": "make http requests", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/heroku/http-call/issues", |
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
38171
1025