Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #71 cookie names now preserve case.

  • Loading branch information...
commit a74419f5ead3d04e02332f80f0d837d09a7fcc8a 1 parent 551f179
@assaf assaf authored
Showing with 6 additions and 7 deletions.
  1. +4 −5 CHANGELOG.md
  2. +2 −2 src/zombie/cookies.coffee
View
9 CHANGELOG.md
@@ -3,17 +3,16 @@ zombie.js-changelog(7) -- Changelog
### Version 0.8.13 Pending
+Add support for IFRAMEs (Damian Janowski).
+
Upgraded to HTML5 0.2.13.
+Fixes #71 cookie names now preserve case.
+
292 Tests
3.7 sec to complete
-### Version 0.8.13 Pending
-
-Add support for IFRAMEs (Damian Janowski).
-
-
### Version 0.8.12 2011-02-01
Tested with Node 0.3.7 in preparation for Node 0.4.0.
View
4 src/zombie/cookies.coffee
@@ -83,7 +83,7 @@ class Cookies
this.set = (name, value, options = {})->
return if options.domain && !domainMatch(options.domain, hostname)
- name = name.toLowerCase()
+ name = name
state = { value: value.toString() }
if options.expires
state.expires = options.expires.getTime()
@@ -109,7 +109,7 @@ class Cookies
this.remove = (name, options = {})->
if in_domain = cookies[options.domain || hostname]
if in_path = in_domain[options.path || pathname]
- delete in_path[name.toLowerCase()]
+ delete in_path[name]
#### cookies(host, path).clear()
#
Please sign in to comment.
Something went wrong with that request. Please try again.