Parcourir la source

Fix broken block digest calculation on malformed HTTP responses

master
JustAnotherArchivist il y a 4 ans
Parent
révision
376cde7b8c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. +1
    -0
      warc-tiny

+ 1
- 0
warc-tiny Voir le fichier

@@ -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()


Chargement…
Annuler
Enregistrer