Comparing version 0.3.3 to 0.3.4
0.3.4 / 2013-03-06 | ||
================== | ||
* fixed #8 auto add application/x-www-form-urlencoded | ||
* fixed existsSync for node < 0.8 | ||
0.3.3 / 2012-12-14 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -99,5 +99,11 @@ /** | ||
body = qs.stringify(body); | ||
if (method === 'POST' || method === 'PUT') { | ||
// auto add application/x-www-form-urlencoded when using urlencode form request | ||
if (!options.headers['Content-Type'] && !options.headers['content-type']) { | ||
options.headers['Content-Type'] = 'application/x-www-form-urlencoded'; | ||
} | ||
} | ||
} | ||
} | ||
if (method === 'GET' && body) { | ||
if ((method === 'GET' || method === 'HEAD') && body) { | ||
options.path += (info.query ? '' : '?') + body; | ||
@@ -104,0 +110,0 @@ body = null; |
{ | ||
"name": "urllib", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.", | ||
@@ -5,0 +5,0 @@ "keywords": [ "urllib", "http", "urlopen", "curl", "wget" ], |
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
12293
179