From bf8baa2c216c01e33ec9f42b456e377490c26815 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 3 Sep 2020 17:00:04 +0800 Subject: [PATCH] httpclient: fix headers being modified across invocations --- nvchecker/httpclient/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nvchecker/httpclient/base.py b/nvchecker/httpclient/base.py index 723c6e3..9876a06 100644 --- a/nvchecker/httpclient/base.py +++ b/nvchecker/httpclient/base.py @@ -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):