httpclient: fix headers being modified across invocations

This commit is contained in:
lilydjwg 2020-09-03 17:00:04 +08:00
parent b9ac0794aa
commit bf8baa2c21

View File

@ -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):