curlrequest
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -145,2 +145,11 @@ var child = require('child_process') | ||
//Parse POST data | ||
if (options.data && typeof options.data === 'object') { | ||
var data = []; | ||
for (var key in options.data) { | ||
data.push(encodeURIComponent(key) + '=' + encodeURIComponent(options.data[key])); | ||
} | ||
options.data = data.join('&'); | ||
} | ||
//Check for the occurrence of a string and fail if not found | ||
@@ -147,0 +156,0 @@ if (options.require) { |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.2.7", | ||
"version" : "0.2.8", | ||
"homepage" : "https://github.com/chriso/curlrequest", | ||
@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>", |
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
17431
303