Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into lloyd-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Caolan McMahon committed Apr 26, 2011
2 parents 429e5ad + 665d4f8 commit ffb0ddc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test-cookie-sessions.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ exports['writeHead'] = function(test){
headers['Set-Cookie'], headers['Set-Cookie'],
'_node=serialized_session; ' + '_node=serialized_session; ' +
'expires=expiry_date; ' + 'expires=expiry_date; ' +
'path=/' 'path=/; HttpOnly'
); );
test.equals(headers['original'], 'header'); test.equals(headers['original'], 'header');
} }
Expand Down Expand Up @@ -422,7 +422,7 @@ exports['writeHead writes empty cookie with immediate expiration if session is u
headers['Set-Cookie'], headers['Set-Cookie'],
'_node=; ' + '_node=; ' +
'expires=now; ' + 'expires=now; ' +
'path=/' 'path=/; HttpOnly'
); );
test.equals(headers['original'], 'header'); test.equals(headers['original'], 'header');
} }
Expand Down Expand Up @@ -494,7 +494,7 @@ exports['set multiple cookies'] = function(test){
['Set-Cookie', 'testcookie=testvalue'], ['Set-Cookie', 'testcookie=testvalue'],
['Set-Cookie', '_node=session_data; ' + ['Set-Cookie', '_node=session_data; ' +
'expires=expiry_date; ' + 'expires=expiry_date; ' +
'path=/'] 'path=/; HttpOnly']
]); ]);
sessions.serialize = _serialize; sessions.serialize = _serialize;
sessions.expires = _expires; sessions.expires = _expires;
Expand Down Expand Up @@ -530,7 +530,7 @@ exports['set single cookie'] = function(test){
'other_header': 'val', 'other_header': 'val',
'Set-Cookie': '_node=session_data; ' + 'Set-Cookie': '_node=session_data; ' +
'expires=expiry_date; ' + 'expires=expiry_date; ' +
'path=/' 'path=/; HttpOnly'
}); });
sessions.serialize = _serialize; sessions.serialize = _serialize;
sessions.expires = _expires; sessions.expires = _expires;
Expand Down Expand Up @@ -563,7 +563,7 @@ exports['handle headers as array'] = function(test){
['header2', 'val2'], ['header2', 'val2'],
['Set-Cookie', '_node=session_data; ' + ['Set-Cookie', '_node=session_data; ' +
'expires=expiry_date; ' + 'expires=expiry_date; ' +
'path=/'] 'path=/; HttpOnly']
]); ]);
sessions.serialize = _serialize; sessions.serialize = _serialize;
test.done(); test.done();
Expand Down

0 comments on commit ffb0ddc

Please sign in to comment.