FIX : don't use self.user_agent if user_agent passed in get()
This commit is contained in:
parent
28ff877081
commit
93b52bd0fe
@ -317,7 +317,7 @@ class Url:
|
||||
if not user_agent:
|
||||
user_agent = self.user_agent
|
||||
|
||||
headers = {"User-Agent": self.user_agent}
|
||||
headers = {"User-Agent": str(user_agent)}
|
||||
response = _get_response(url, params=None, headers=headers)
|
||||
|
||||
if not encoding:
|
||||
|
Loading…
Reference in New Issue
Block a user