Skip to content
Browse files

cookies can be nullified from server

  • Loading branch information...
1 parent 272354f commit 3edd17c8f96b5e525bf6ebb0f7c3068d6841ee5b bitmage committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Server.coffee
View
4 lib/Server.coffee
@@ -77,8 +77,8 @@ module.exports = (opt) ->
return @
responder.cookie = (key, val) ->
- return msg.cookies unless key or val
- if key and not val
+ return msg.cookies unless key
+ if key and val is undefined
return msg.cookies[key]
else
msg.cookies[key] = val

0 comments on commit 3edd17c

Please sign in to comment.
Something went wrong with that request. Please try again.