From c008c2eca70d5e8fcf7040434b56c0ccfc3aad83 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Fri, 1 Jul 2022 14:18:17 -0700 Subject: [PATCH 1/2] bump version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 52af206..667299f 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ ''' setup.py - setuptools installation configuration for warcprox -Copyright (C) 2013-2021 Internet Archive +Copyright (C) 2013-2022 Internet Archive This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -44,7 +44,7 @@ except: setuptools.setup( name='warcprox', - version='2.4.29', + version='2.4.30', description='WARC writing MITM HTTP/S proxy', url='https://github.com/internetarchive/warcprox', author='Noah Levitt', From 2cdfceade15bbf013ce7f0653e8b3b6f9caec7e1 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 3 Aug 2022 15:49:54 -0700 Subject: [PATCH 2/2] decompress and split --- warcprox/warcproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warcprox/warcproxy.py b/warcprox/warcproxy.py index be2affd..645055e 100644 --- a/warcprox/warcproxy.py +++ b/warcprox/warcproxy.py @@ -177,7 +177,7 @@ class WarcProxyHandler(warcprox.mitmproxy.MitmProxyHandler): self._security_check(warcprox_meta) self._enforce_limits(warcprox_meta) if 'compressed_blocks' in warcprox_meta: - warcprox_meta['blocks'] = zlib.decompress(warcprox_meta['compressed_blocks']).decode() + warcprox_meta['blocks'] = zlib.decompress(warcprox_meta['compressed_blocks']).decode().split('~~') del warcprox_meta['compressed_blocks'] self._enforce_blocks(warcprox_meta)