Using zlib's deflate content encoding instead of gzip.

This commit is contained in:
Samuel Clay 2021-05-05 12:24:03 -04:00
parent ca70eac08f
commit 5e4cd0424c

View file

@ -880,7 +880,7 @@ def load_feed_page(request, feed_id):
page_response = None
if page_response and page_response.status_code == 200:
response = HttpResponse(page_response.content, content_type="text/html; charset=utf-8")
response['Content-Encoding'] = 'gzip'
response['Content-Encoding'] = 'deflate'
response['Last-Modified'] = page_response.headers.get('Last-modified')
response['Etag'] = page_response.headers.get('Etag')
response['Content-Length'] = str(len(page_response.content))