Skip to content
Myr

Merge branch 'integration'

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

authored by visionmedia · committed by visionmedia · parents eef24ea, 32bc8dc · Browse files · 2 files+31 added−7 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+31 added−7 removed

  • tests:+16 added−1 removed
  • other:+15 added−6 removed

2 files+31 added−7 removed

modified:lib/express/plugins/cookie.js+15 added-6 removed
modified:spec/spec.plugins.cookie.js+16 added-1 removed
53 unmodified lines
54 it 'should disregard ad-hoc invalid whitespace'55 var attrs = ' SID = 1232431234234 ; data = foo'56 parseCookie(attrs).should.eql { SID: '1232431234234', data: 'foo' }57 end5859 it 'should support complex quoted values'60 var attrs = 'SID="123456789"; fbs_0011223355="uid=0987654321&name=Test+User"'61 parseCookie(attrs).should.eql { SID: '123456789', fbs_0011223355: 'uid=0987654321&name=Test User' }62 end63 64 it 'should not override when a duplicate key is found'65 var attrs = 'SID=1234; SID=9999'66 parseCookie(attrs).should.eql { SID: '1234' }67 end68 69 it 'should support malformed cookies'70 var attrs = 'SID'71 parseCookie(attrs).should.eql {}72 end73 end74 75 describe 'on'76 describe 'request'
34 unmodified lines
111 end112 end113 114 end100end115end