get-promise
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -21,2 +21,3 @@ 'use strict'; | ||
var binary = options.binary; | ||
var redirect = options.redirect; | ||
@@ -54,3 +55,3 @@ return Q.Promise(function (resolve, reject, notify) { | ||
}); | ||
} else if (response.statusCode < 400) { | ||
} else if (redirect && response.statusCode < 400) { | ||
notify({ | ||
@@ -57,0 +58,0 @@ url: url, |
{ | ||
"name": "get-promise", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "HTTP(S) GET with promises, supports redirects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4848
81