This website works better with JavaScript.
Home
Explore
Help
Sign In
JustAnotherArchivist
/
little-things
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix infinite loop at end of WARC
master
JustAnotherArchivist
5 years ago
parent
a700e8e2fe
commit
641bc7a207
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
warc-tiny
+ 2
- 0
warc-tiny
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save