Permalink
Browse files

[Fixes #259] Added empty `Accept-Encoding` header since there's no gz…

…ip/compress

support at the moment.
  • Loading branch information...
1 parent 6c1ce1b commit 3e1754949d143d7de127d50b25589ab869f7314b @assaf committed May 13, 2012
Showing with 5 additions and 0 deletions.
  1. +3 −0 CHANGELOG.md
  2. +2 −0 lib/zombie/resources.coffee
View
@@ -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
@@ -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

0 comments on commit 3e17549

Please sign in to comment.