Skip to content
Myr

Cookie expires now using Date#toGMTString()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Spec I found wanted hyphens, but this appears to be the norm for JS cookies

authored by visionmedia · committed by visionmedia · parent 8ed24de · Browse files · 2 files+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−5 removed

  • tests:+1 added−1 removed
  • other:+1 added−4 removed

2 files+2 added−5 removed

modified:lib/express/plugins/cookie.js+1 added-4 removed
modified:spec/spec.plugins.cookie.js+1 added-1 removed
21 unmodified lines
22 expires: new Date('May 25, 1987 11:13:00'),23 path: '/foo',24 domain: '.vision-media.ca'25 }26 compileCookie('foo', 'bar', options).should.eql 'foo=bar; expires=Mon, 25-May-1987 11:13:00 GMT; path=/foo; domain=.vision-media.ca'26 compileCookie('foo', 'bar', options).should.eql 'foo=bar; expires=Mon, 25 May 1987 18:13:00 GMT; path=/foo; domain=.vision-media.ca'27 end28 29 it 'should convert true to a key without a value'30 var options = {
70 unmodified lines