Skip to content

Commit

Permalink
Fixes assaf#71 cookie names now preserve case.
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Feb 2, 2011
1 parent 551f179 commit a74419f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions CHANGELOG.md
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/zombie/cookies.coffee
Expand Up @@ -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()
Expand All @@ -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()
#
Expand Down

0 comments on commit a74419f

Please sign in to comment.