ソースを参照

Fix infinite loop at end of WARC

master
JustAnotherArchivist 5年前
コミット
641bc7a207
1個のファイルの変更2行の追加0行の削除
  1. +2
    -0
      warc-tiny

+ 2
- 0
warc-tiny ファイルの表示

@@ -80,6 +80,8 @@ def iter_warc(f):
buf = buf + fp.read(4096)
except EOFError:
break
if not buf:
break
if not buf:
break
warcHeaderBuf, buf = buf.split(b'\r\n\r\n', 1)


読み込み中…
キャンセル
保存