Comparing version 0.3.2 to 0.3.3
@@ -56,2 +56,24 @@ /* | ||
exports.put = function(url, options, callback){ | ||
// if only 2 args are provided | ||
if(callback === undefined && options && typeof(options)==="function") | ||
callback = options; | ||
var moreOptions = options; | ||
moreOptions.url = url; | ||
moreOptions.method = 'PUT'; | ||
doRequest(moreOptions, callback); | ||
} | ||
exports.delete = function(url, options, callback){ | ||
// if only 2 args are provided | ||
if(callback === undefined && options && typeof(options)==="function") | ||
callback = options; | ||
var moreOptions = options; | ||
moreOptions.url = url; | ||
moreOptions.method = 'DELETE'; | ||
doRequest(moreOptions, callback); | ||
} | ||
function doRequest(o, callback){ | ||
@@ -58,0 +80,0 @@ if(o.maxRedirects === undefined){ |
{ | ||
"name": "httpreq", | ||
"description": "node-httpreq is a node.js library to do HTTP(S) requests the easy way", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sam Decrock", |
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
81359
440