mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
rewrite: only translate non-empty header values
This commit is contained in:
parent
871cc26fa4
commit
1d8c68b745
@ -57,7 +57,7 @@ class LiveRewriter(object):
|
||||
|
||||
for env_name, req_name in header_list:
|
||||
value = env.get(env_name)
|
||||
if value is not None:
|
||||
if value:
|
||||
headers[req_name] = value
|
||||
|
||||
return headers
|
||||
|
Loading…
x
Reference in New Issue
Block a user