1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

rewrite_live: don't forward via or https_x headers, only standard (for

now) possible fix for #57
This commit is contained in:
Ilya Kreymer 2015-02-04 14:19:37 -08:00
parent 40fba3c27b
commit cdb3dcc3d2

View File

@ -75,6 +75,9 @@ class LiveRewriter(object):
elif name == 'HTTP_REFERER':
continue
elif name.startswith(('HTTP_X_', 'HTTP_VIA')):
continue
elif name == 'HTTP_COOKIE':
name = 'Cookie'
value = self._req_cookie_rewrite(urlkey, value)
@ -144,6 +147,8 @@ class LiveRewriter(object):
else:
data = input_
print(url)
print(req_headers)
response = requests.request(method=method,
url=url,
data=data,