1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

Set Accept-Encoding to identity

This commit is contained in:
Tessa Walsh 2025-03-10 17:34:48 -04:00
parent 50be6fc58d
commit 8d7af13ecf

View File

@ -342,7 +342,7 @@ class HttpLoader(BaseLoader):
Load a file-like reader over http using range requests Load a file-like reader over http using range requests
and an optional cookie created via a cookie_maker and an optional cookie created via a cookie_maker
""" """
headers = {} headers = {"Accept-Encoding": "identity"}
if offset != 0 or length != -1: if offset != 0 or length != -1:
headers['Range'] = BlockLoader._make_range_header(offset, length) headers['Range'] = BlockLoader._make_range_header(offset, length)