mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
httpclient: fix headers being modified across invocations
This commit is contained in:
parent
b9ac0794aa
commit
bf8baa2c21
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ class BaseSession:
|
|||
p = proxy.get()
|
||||
ua = user_agent.get()
|
||||
|
||||
headers = headers.copy()
|
||||
headers.setdefault('User-Agent', ua)
|
||||
|
||||
for i in range(1, t+1):
|
||||
|
|
Loading…
Add table
Reference in a new issue