requestify
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -99,3 +99,3 @@ /** | ||
if (isSuccessful(response.code)) { | ||
storeCache(request.getFullUrl(), request.getCode(), request.getHeaders(), request.body); | ||
storeCache(request.getFullUrl(), response.getCode(), response.getHeaders(), response.body); | ||
defer.resolve(response); | ||
@@ -102,0 +102,0 @@ return; |
@@ -45,3 +45,3 @@ var url = require('url'), | ||
if (responseType.indexOf('application/json') !== -1) { | ||
if (responseType.indexOf('application/json') !== -1 && _.isString(this.body)) { | ||
try { | ||
@@ -48,0 +48,0 @@ return JSON.parse(this.body); |
{ | ||
"name": "requestify", | ||
"description": "Simplifies node HTTP request making.", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "test": "mocha -R spec" |
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
48566