Browse Source

Fix broken block digest calculation on malformed HTTP responses

master
JustAnotherArchivist 4 years ago
parent
commit
376cde7b8c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      warc-tiny

+ 1
- 0
warc-tiny View File

@@ -179,6 +179,7 @@ def iter_warc(f):
yield HTTPResponseBodyChunk(httpDecompressor.decompress(httpBody))
else:
print('Warning: malformed HTTP response in record {}, skipping'.format(recordID), file = sys.stderr)
yield WARCBlockChunk(warcContent)
else:
yield WARCBlockChunk(warcContent)
yield EndOfRecord()


Loading…
Cancel
Save