Skip to content

Commit

Permalink
fix typo in content encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmartin committed Dec 2, 2014
1 parent fef50df commit d0a26de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rester/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _unzip_body(self, body_bytes):
content_encoding = self.response.get_header("content-encoding")
if content_encoding:
content_encoding = content_encoding.lower()
if "gzip" in content_encoding or "defalte" in content_encoding:
if "gzip" in content_encoding or "deflate" in content_encoding:
body_bytes = zlib.decompress(body_bytes, 15 + 32)
return body_bytes

Expand Down

0 comments on commit d0a26de

Please sign in to comment.