From a83d28d08e38f4b15b6fb75b309a73f1f59229c9 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 16 Jul 2020 00:46:49 +0000 Subject: [PATCH] Add WARC/1.1 support --- warc-peek | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warc-peek b/warc-peek index 236bd1d..5bc1bb2 100755 --- a/warc-peek +++ b/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