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:
parent
40fba3c27b
commit
cdb3dcc3d2
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user