Sfoglia il codice sorgente

Fix broken block digest calculation on malformed HTTP responses

master
JustAnotherArchivist 4 anni fa
parent
commit
376cde7b8c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      warc-tiny

+ 1
- 0
warc-tiny Vedi 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()


Caricamento…
Annulla
Salva