Permalink
Browse files

Zombie now sends V0 cookies (Assaf Arkin).

  • Loading branch information...
1 parent 2f636db commit ac8f5cc3d58ff3cd3b2448e0f927476248a71ff0 @assaf assaf committed Jan 26, 2011
Showing with 8 additions and 4 deletions.
  1. +5 −1 CHANGELOG.md
  2. +1 −1 spec/cookie-spec.coffee
  3. +2 −2 src/zombie/cookies.coffee
View
@@ -19,7 +19,11 @@ Ensure fields are sent in the order they are described (José Valim).
Fix parsing of empty body (Vinicius Baggio).
- 277 Tests
+Add support for window.screen (Damian Janowski).
+
+Zombie now sends V0 cookies (Assaf Arkin).
+
+ 278 Tests
4.0 sec to complete
View
@@ -132,6 +132,6 @@ vows.describe("Cookies").addBatch(
browser.cookies("localhost").update("foo=bar;")
browser.cookies("localhost").addHeader header
header
- "should set the header according to the spec": (header)-> assert.equal header.cookie, "$Version=1; foo=bar;$Path=/"
+ "should send V0 header": (header)-> assert.equal header.cookie, "foo=bar"
).export(module)
@@ -132,9 +132,9 @@ class Cookies
#
# Adds Cookie header suitable for sending to the server.
this.addHeader = (headers)->
- header = ("#{match[2]}=#{match[3].value};$Path=#{match[1]}" for match in selected()).join("; ")
+ header = ("#{match[2]}=#{match[3].value}" for match in selected()).join("; ")
if header.length > 0
- headers.cookie = "$Version=1; #{header}"
+ headers.cookie = header
#### cookies(host, path).pairs => String
#

0 comments on commit ac8f5cc

Please sign in to comment.