瀏覽代碼

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)


Loading…
取消
儲存