Skip to content
Myr

Merge branch 'master' of git://github.com/tritonrc/express

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

authored by visionmedia · committed by visionmedia · parents ec6b518, 580ad1b · Browse files · 2 files+11 added−2 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+11 added−2 removed

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

2 files+11 added−2 removed

modified:lib/express/plugins/cookie.js+1 added-1 removed
modified:spec/spec.plugins.cookie.js+10 added-1 removed
97 unmodified lines
98 return '' 99 })100 get('/user').headers['Set-Cookie'].should.eql 'SID=732423sdfs73243; path=/; secure\r\nSet-Cookie: foo=bar; path=/'101 end102103 it 'should support URL unfriendly characters'104 get('/user', function(){105 this.cookie('spaceship', '<*==*>', { path: '/', secure: true })106 this.cookie(':)', 'smileyface')107 return '' 108 })109 get('/user').headers['Set-Cookie'].should.eql 'spaceship=%3C*%3D%3D*%3E; path=/; secure\r\nSet-Cookie: %3A)=smileyface; path=/'110 end111 end112 end113 114 describe 'cookie()'115 it 'should get request cookie values'116 get('/user', function(){117 return this.cookie('foo')118 })110 get('/user', { headers: { cookie: 'foo=bar' }}).body.should.eql 'bar'119 get('/user', { headers: { cookie: 'foo=bar==' }}).body.should.eql 'bar'120 end121 end122 123 end
1 unmodified line