Comparing version 0.4.3 to 0.4.4
0.4.4 / 2013-08-10 | ||
================== | ||
* handle json response to null when data size is zero | ||
0.4.3 / 2013-08-10 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -253,6 +253,10 @@ /** | ||
if (args.dataType === 'json') { | ||
try { | ||
data = JSON.parse(data); | ||
} catch (e) { | ||
err = e; | ||
if (size === 0) { | ||
data = null; | ||
} else { | ||
try { | ||
data = JSON.parse(data); | ||
} catch (e) { | ||
err = e; | ||
} | ||
} | ||
@@ -259,0 +263,0 @@ } |
{ | ||
"name": "urllib", | ||
"version": "0.4.3", | ||
"version": "0.4.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", "request", "https" ], |
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
23794
276