소스 검색

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



불러오는 중...
취소
저장