瀏覽代碼

Add WARC/1.1 support

master
JustAnotherArchivist 3 年之前
父節點
當前提交
a83d28d08e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      warc-peek

+ 1
- 1
warc-peek 查看文件

@@ -48,7 +48,7 @@ def find_offsets(warcfile, offset, length):
except:
continue
logger.debug('First 100 bytes of decompressed data: {!r}'.format(dec[:100]))
if dec.startswith(b'WARC/1.0\r\n'):
if dec.startswith(b'WARC/1.0\r\n') or dec.startswith(b'WARC/1.1\r\n'):
yield offset + pos




Loading…
取消
儲存