Always cast url to string, avoid passing waybackpy objects to _get_response
This commit is contained in:
parent
93b52bd0fe
commit
15ef5816db
@ -318,7 +318,7 @@ class Url:
|
|||||||
user_agent = self.user_agent
|
user_agent = self.user_agent
|
||||||
|
|
||||||
headers = {"User-Agent": str(user_agent)}
|
headers = {"User-Agent": str(user_agent)}
|
||||||
response = _get_response(url, params=None, headers=headers)
|
response = _get_response(str(url), params=None, headers=headers)
|
||||||
|
|
||||||
if not encoding:
|
if not encoding:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user