Skip to content

Commit

Permalink
Fixed initialization of the "secure" option
Browse files Browse the repository at this point in the history
When the "option.secure" is set to "false", the check "options && options.secure || Cookies.defaults.secure" returns the default value instead of "false"
  • Loading branch information
pomeh committed May 5, 2012
1 parent 29061bc commit 29dc2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookies.js
Expand Up @@ -36,7 +36,7 @@
path: options && options.path || Cookies.defaults.path,
domain: options && options.domain || Cookies.defaults.domain,
expires: options && options.expires || Cookies.defaults.expires,
secure: options && options.secure || Cookies.defaults.secure
secure: (options && typeof options.secure !== undefined) ? o.secure : Cookies.defaults.secure
};

switch (typeof options.expires) {
Expand Down

0 comments on commit 29dc2ff

Please sign in to comment.