request-ssl
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -265,6 +265,6 @@ /** | ||
if (_.isObject(args[0])) { | ||
args[0].method = k; | ||
args[0].method = _translateMethod(k); | ||
} | ||
else { | ||
args[0] = {url:args[0], method: k}; | ||
args[0] = {url:args[0], method: _translateMethod(k)}; | ||
} | ||
@@ -275,2 +275,10 @@ return Request.apply(null, args); | ||
function _translateMethod(method) { | ||
var m = method; | ||
m = m.toUpperCase(); | ||
if(m === 'DEL') { | ||
m = 'DELETE'; } | ||
return m; | ||
} | ||
// these can just be patched | ||
@@ -277,0 +285,0 @@ ['forever','defaults','cookie','jar'].forEach(function(k){ |
{ | ||
"name": "request-ssl", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Pinned SSL version of the Request library", | ||
@@ -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
30922
391