mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
make sure warc headers are bytes
This commit is contained in:
parent
6da3dd50ac
commit
c02c98e369
@ -280,7 +280,7 @@ class WarcProxyHandler(warcprox.mitmproxy.MitmProxyHandler):
|
|||||||
remote_ip=b'',
|
remote_ip=b'',
|
||||||
warcprox_meta=warcprox_meta,
|
warcprox_meta=warcprox_meta,
|
||||||
content_type=self.headers['Content-Type'],
|
content_type=self.headers['Content-Type'],
|
||||||
custom_type=warc_type or self.headers['WARC-Type'],
|
custom_type=warc_type or self.headers['WARC-Type'].encode('utf-8'),
|
||||||
status=204, size=len(request_data),
|
status=204, size=len(request_data),
|
||||||
client_ip=self.client_address[0],
|
client_ip=self.client_address[0],
|
||||||
method=self.command, timestamp=timestamp)
|
method=self.command, timestamp=timestamp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user