mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-27 22:11:11 +00:00
User agent removed
This commit is contained in:
parent
68e4918b02
commit
e11102f4a6
2
twoot.py
2
twoot.py
|
@ -86,7 +86,7 @@ def deredir_url(url):
|
||||||
ret = None
|
ret = None
|
||||||
try:
|
try:
|
||||||
# Download the page
|
# Download the page
|
||||||
ret = requests.get(url, headers, timeout=5)
|
ret = requests.get(url, timeout=5)
|
||||||
except:
|
except:
|
||||||
# If anything goes wrong keep the URL intact
|
# If anything goes wrong keep the URL intact
|
||||||
return url
|
return url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user