diff --git a/morss/crawler.py b/morss/crawler.py index fc80ac0..e32c339 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -37,6 +37,7 @@ class GZIPHandler(BaseHandler): if resp.headers.get('Content-Encoding') == 'gzip': data = resp.read() data = GzipFile(fileobj=BytesIO(data), mode='r').read() + resp.headers['Content-Encoding'] = 'identity' fp = BytesIO(data) old_resp = resp