Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
[Fixes #259] Added empty Accept-Encoding header since there's no gz…
Browse files Browse the repository at this point in the history
…ip/compress

support at the moment.
  • Loading branch information
assaf committed May 13, 2012
1 parent 6c1ce1b commit 3e17549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Fixed `onload` event not firing on window.

Added `navigator.cookieEnabled` and `navigator.vendor`.

Added empty `Accept-Encoding` header since there's no gzip/compress support at
the moment.

Upgraded to HTML5 0.3.8.

487 tests
Expand Down
2 changes: 2 additions & 0 deletions lib/zombie/resources.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ class Resources extends Array
# Clone headers before we go and modify them.
headers = if headers then JSON.parse(JSON.stringify(headers)) else {}
headers["User-Agent"] = browser.userAgent
# We don't support gzip or compress at the moment.
headers["Accept-Encoding"] = ""
if method == "GET" || method == "HEAD"
# Request paramters go in query string
url.search = "?" + stringify(data) if data
Expand Down

0 comments on commit 3e17549

Please sign in to comment.