diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-04-14 14:25:22 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-04-14 14:26:00 +0200 |
commit | 4a6494b19f287848588641aa1330807e69031e8b (patch) | |
tree | 62fbb88145eaed4e43dd56ab15aeb3ca50d235fe /crocoite/warc.py | |
parent | 048085595975b02389e8d58ed74e5a18573ee569 (diff) | |
download | crocoite-4a6494b19f287848588641aa1330807e69031e8b.tar.gz crocoite-4a6494b19f287848588641aa1330807e69031e8b.tar.bz2 crocoite-4a6494b19f287848588641aa1330807e69031e8b.zip |
Fix base64 body detection
Broken by commit a21d7332e33a3e47a363004196451721d449e70b
Diffstat (limited to 'crocoite/warc.py')
-rw-r--r-- | crocoite/warc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/warc.py b/crocoite/warc.py index b56d315..8664e5a 100644 --- a/crocoite/warc.py +++ b/crocoite/warc.py @@ -186,7 +186,7 @@ class WarcLoader (AccountingSiteLoader): raise ValueError ('body for {} too large {} vs {}'.format (reqId, item.encodedDataLength, self.maxBodySize)) else: - rawBody = item.body + rawBody, base64Encoded = item.body if rawBody is None: raise ValueError ('no data for {} {} {}'.format (resp['url'], resp['status'], reqId)) |