diff --git a/setup.py b/setup.py index 92a0daf..68f81ba 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 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)