Преглед на файлове

Fix detection of multiple transfer encodings

master
JustAnotherArchivist преди 4 години
родител
ревизия
34c1a58034
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      warc-tiny

+ 1
- 1
warc-tiny Целия файл

@@ -140,7 +140,7 @@ def iter_warc(f):
gzipped = False
if b'\r\ntransfer-encoding' in httpHeaders.lower():
transferEncoding = next(x[1] for x in httpHeaderLines if x[0].lower() == b'transfer-encoding')
transferEncodings = map(bytes.strip, transferEncoding.split(b','))
transferEncodings = set(map(bytes.strip, transferEncoding.split(b',')))
chunked = b'chunked' in transferEncodings
gzipped = b'gzip' in transferEncodings



Зареждане…
Отказ
Запис