Skip to content
Myr

Fixed setting of multiple cookies. Closes #199

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

authored by visionmedia · committed by visionmedia · parent 44a50f6 · Browse files · 2 files+3 added−3 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+3 added−3 removed

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

2 files+3 added−3 removed

modified:lib/express/plugins/cookie.js+1 added-1 removed
modified:spec/spec.plugins.cookie.js+2 added-2 removed
74 unmodified lines
75 })76 get('/user').headers['set-cookie'].should.eql 'SID=732423sdfs73243; path=/; secure'77 end78 79 it 'should join multiple cookies'79 it 'should set multiple cookies'80 get('/user', function(){81 this.cookie('SID', '732423sdfs73243', { path: '/', secure: true })82 this.cookie('foo', 'bar')83 return '' 84 })85 get('/user').headers['set-cookie'].should.eql 'SID=732423sdfs73243; path=/; secure, foo=bar; path=/'85 get('/user').headers['set-cookie'].should.eql 'SID=732423sdfs73243; path=/; secure\nset-cookie: foo=bar; path=/'86 end87 end88 end89
11 unmodified lines