crawler: change http header after uncompressing

Change content-encoding to "identity"
master
pictuga 2017-02-25 18:10:43 -10:00
parent e71fc967ce
commit 026903ce73
1 changed files with 1 additions and 0 deletions

View File

@ -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