mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
python2 fixes
This commit is contained in:
parent
338e5cd878
commit
c0e6c219ca
2
setup.py
2
setup.py
@ -51,7 +51,7 @@ except:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='warcprox',
|
name='warcprox',
|
||||||
version='2.1b1.dev72',
|
version='2.1b1.dev73',
|
||||||
description='WARC writing MITM HTTP/S proxy',
|
description='WARC writing MITM HTTP/S proxy',
|
||||||
url='https://github.com/internetarchive/warcprox',
|
url='https://github.com/internetarchive/warcprox',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
@ -163,9 +163,9 @@ class ProxyingRecordingHTTPResponse(http_client.HTTPResponse):
|
|||||||
|
|
||||||
status_and_headers = 'HTTP/1.1 {} {}\r\n'.format(
|
status_and_headers = 'HTTP/1.1 {} {}\r\n'.format(
|
||||||
self.status, self.reason)
|
self.status, self.reason)
|
||||||
self.headers['Via'] = via_header_value(
|
self.msg['Via'] = via_header_value(
|
||||||
self.headers.get('Via'), '%0.1f' % (self.version / 10))
|
self.msg.get('Via'), '%0.1f' % (self.version / 10.0))
|
||||||
for k,v in self.headers.items():
|
for k,v in self.msg.items():
|
||||||
if k.lower() not in (
|
if k.lower() not in (
|
||||||
'connection', 'proxy-connection', 'keep-alive',
|
'connection', 'proxy-connection', 'keep-alive',
|
||||||
'proxy-authenticate', 'proxy-authorization', 'upgrade',
|
'proxy-authenticate', 'proxy-authorization', 'upgrade',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user