curlrequest
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -182,3 +182,8 @@ var child = require('child_process') | ||
for (key in options.headers) { | ||
//TODO: Fix header keys, encode values? | ||
key = key.replace(/[_-]/g, ' ').split(' ').map(function (str) { | ||
if (str.length) { | ||
str = str[0].toUpperCase() + str.substr(1); | ||
} | ||
return str; | ||
}).join('-'); | ||
headers[key] = options.headers[key]; | ||
@@ -279,3 +284,3 @@ } | ||
} | ||
matches.push(match[1]); | ||
matches.push(match[1].replace(/[\r\n\t\s]/g, '')); | ||
} | ||
@@ -282,0 +287,0 @@ return matches; |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.2.2", | ||
"version" : "0.2.3", | ||
"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
12708
292