Pārlūkot izejas kodu

Fix not returning complete body for non-chunked responses

Leftover from debugging
master
JustAnotherArchivist pirms 4 gadiem
vecāks
revīzija
552a4147c2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      warc-tiny

+ 1
- 1
warc-tiny Parādīt failu

@@ -175,7 +175,7 @@ def iter_warc(f):
yield HTTPResponseBodyChunk(chunk)
httpBody = httpBody[chunkLineEnd + 2 + chunkLength + 2:]
else:
yield HTTPResponseBodyChunk(httpDecompressor.decompress(httpBody)[:50])
yield HTTPResponseBodyChunk(httpDecompressor.decompress(httpBody))
else:
print('Warning: malformed HTTP response, skipping', file = sys.stderr)
else:


Notiek ielāde…
Atcelt
Saglabāt