curlrequest
Advanced tools
Comparing version 0.3.3 to 0.3.4
11
index.js
@@ -97,2 +97,3 @@ var util = require('util') | ||
var curl | ||
, curl_path = 'curl' | ||
, args = ['--silent', '--show-error', '--no-buffer'] | ||
@@ -124,2 +125,8 @@ , start = new Date | ||
//Allow for a custom curl path | ||
if (options.curl_path) { | ||
curl_path = options.curl_path; | ||
delete options.curl_path; | ||
} | ||
//Follow location by default | ||
@@ -159,3 +166,3 @@ if ('max-redirs' in options) { | ||
for (var key in options.data) { | ||
data.push(encodeURIComponent(key) + '=' + encodeURIComponent(options.data[key])); | ||
data.push(escape(key) + '=' + escape(options.data[key])); | ||
} | ||
@@ -234,3 +241,3 @@ options.data = data.join('&'); | ||
var proc_cmd = 'curl' | ||
var proc_cmd = curl_path | ||
, proc_options = { cwd: options.cwd || cwd }; | ||
@@ -237,0 +244,0 @@ |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.3.3", | ||
"version" : "0.3.4", | ||
"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
26164
459