Permalink
Browse files

make sure `secure` is set

  • Loading branch information...
jed committed Jan 2, 2012
1 parent 588822c commit 4369e93355efab856d2477922a2ea467ba0562e1
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/cookies.js
View
@@ -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 ) {

0 comments on commit 4369e93

Please sign in to comment.