Skip to content

Commit

Permalink
make sure secure is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jed committed Jan 2, 2012
1 parent 588822c commit 4369e93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Cookies.prototype = {
if ( !secure && opts && opts.secure ) throw "Cannot send secure cookie over unencrypted socket"

cookie.secure = secure
if ("secure" in opts) cookie.secure = opts.secure
headers.push( cookie.toHeader() )

if ( opts && opts.signed ) {
Expand Down

0 comments on commit 4369e93

Please sign in to comment.