tough-cookie
Advanced tools
Comparing version 0.9.8 to 0.9.9
@@ -344,3 +344,3 @@ /* | ||
*/ | ||
var cookie_avs = unparsed.split(/\s*;\s+/); | ||
var cookie_avs = unparsed.split(/\s*;\s*/); | ||
while (cookie_avs.length) { | ||
@@ -347,0 +347,0 @@ var av = cookie_avs.shift(); |
@@ -6,3 +6,3 @@ { | ||
"keywords": "HTTP cookie cookies set-cookie cookiejar jar RFC6265 RFC2965", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"homepage": "https://github.com/goinstant/node-cookie", | ||
@@ -9,0 +9,0 @@ "repository": { |
20
test.js
@@ -247,3 +247,3 @@ /* | ||
assert.equal(c.TTL(now), 9000); | ||
assert.equal(c.expiryTime(), c.expires); | ||
assert.equal(c.expiryTime(), c.expires.getTime()); | ||
}, | ||
@@ -453,2 +453,20 @@ "TTL with old expires": function() { | ||
}, | ||
}, | ||
"Ironically, Google 'GAPS' cookie has very little whitespace": { | ||
topic: function() { | ||
return Cookie.parse("GAPS=1:A1aaaaAaAAa1aaAaAaaAAAaaa1a11a:aaaAaAaAa-aaaA1-;Path=/;Expires=Thu, 17-Apr-2014 02:12:29 GMT;Secure;HttpOnly"); | ||
}, | ||
"parsed": function(c) { assert.ok(c) }, | ||
"key": function(c) { assert.equal(c.key, 'GAPS') }, | ||
"value": function(c) { assert.equal(c.value, '1:A1aaaaAaAAa1aaAaAaaAAAaaa1a11a:aaaAaAaAa-aaaA1-') }, | ||
"path": function(c) { | ||
assert.notEqual(c.path, '/;Expires'); // BUG | ||
assert.equal(c.path, '/'); | ||
}, | ||
"expires": function(c) { | ||
assert.notEqual(c.expires, Infinity); | ||
assert.equal(c.expires.getTime(), 1397700749000); | ||
}, | ||
"secure": function(c) { assert.ok(c.secure) }, | ||
"httponly": function(c) { assert.ok(c.httpOnly) }, | ||
} | ||
@@ -455,0 +473,0 @@ } |
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
254628
2604
10