setup: ignore sec headers
This commit is contained in:
parent
1ad3dc2312
commit
3be40b1c6d
1 changed files with 3 additions and 2 deletions
|
|
@ -39,8 +39,9 @@ def setup(filepath=None, headers_raw=None):
|
|||
)
|
||||
|
||||
ignore_headers = {"host", "content-length", "accept-encoding"}
|
||||
for i in ignore_headers:
|
||||
user_headers.pop(i, None)
|
||||
for key in user_headers.copy().keys():
|
||||
if key.startswith("sec") or key in ignore_headers:
|
||||
user_headers.pop(key, None)
|
||||
|
||||
init_headers = initialize_headers()
|
||||
user_headers.update(init_headers)
|
||||
|
|
|
|||
Loading…
Reference in a new issue