From d0a26de58133f813b92a691f242098cb666253ec Mon Sep 17 00:00:00 2001 From: Nik Martin Date: Mon, 1 Dec 2014 20:31:19 -0600 Subject: [PATCH] fix typo in content encoding --- rester/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rester/http.py b/rester/http.py index a79cb65..afb1b65 100644 --- a/rester/http.py +++ b/rester/http.py @@ -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