Comparing version 5.0.0 to 5.0.1
@@ -53,6 +53,2 @@ | ||
if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') { | ||
options.agent = options.rejectUnauthorized ? exports.agents.https : exports.agents.httpsAllowUnauthorized; | ||
} | ||
var redirects = (options.hasOwnProperty('redirects') ? options.redirects : false); // Needed to allow 0 as valid value when passed recursively | ||
@@ -65,3 +61,6 @@ | ||
if (options.agent || options.agent === false) { | ||
if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') { | ||
uri.agent = options.rejectUnauthorized ? exports.agents.https : exports.agents.httpsAllowUnauthorized; | ||
} | ||
else if (options.agent || options.agent === false) { | ||
uri.agent = options.agent; | ||
@@ -68,0 +67,0 @@ } |
{ | ||
"name": "wreck", | ||
"description": "HTTP Client Utilities", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"repository": "git://github.com/hapijs/wreck", | ||
@@ -6,0 +6,0 @@ "main": "index", |
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