From 552a4147c257e0e8965f1b7e2d7192785c9d2d6e Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Fri, 19 Jul 2019 12:49:31 +0000 Subject: [PATCH] Fix not returning complete body for non-chunked responses Leftover from debugging --- warc-tiny | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warc-tiny b/warc-tiny index d21d88a..e082227 100755 --- a/warc-tiny +++ b/warc-tiny @@ -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: