Comparing version 0.2.5 to 0.2.6
@@ -374,5 +374,9 @@ /** | ||
var crumbs = Unirest.trim(cookie).split('='); | ||
var key = Unirest.trim(crumbs[0]); | ||
var value = Unirest.trim(crumbs.slice(1).join('=')); | ||
if (crumbs[0] && crumbs[0] != '') { | ||
result.cookies[Unirest.trim(crumbs[0])] = Unirest.trim(crumbs.slice(1).join('=') || true); | ||
result.cookies[key] = value === '' | ||
? true | ||
: value; | ||
} | ||
@@ -379,0 +383,0 @@ } |
{ | ||
"name": "unirest", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Lightweight HTTP Request library.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
47145
794