Skip to content
Myr

Added spec for malformed cookies

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

authored by visionmedia · committed by visionmedia · parent 1d596bc · Browse files · 2 files+9 added−4 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+9 added−4 removed

  • tests:+5 added−0 removed
  • other:+4 added−4 removed

2 files+9 added−4 removed

modified:lib/express/plugins/cookie.js+4 added-4 removed
modified:spec/spec.plugins.cookie.js+5 added
58 unmodified lines
59 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 support malformed cookies'65 var attrs = 'SID'66 parseCookie(attrs).should.eql {}67 end68 end69 70 describe 'on'71 describe 'request'
39 unmodified lines