Fix bug in remove_link_redirections

This commit is contained in:
jeancf 2023-01-31 21:58:07 +01:00
parent b817d8942c
commit 92a60e2fad

View File

@ -187,7 +187,7 @@ def deredir_url(url):
ret = None
try:
# Download the page
ret = requests.head(url, headers=headers, timeout=5)
ret = requests.head(url, headers=headers, allow_redirects=True, timeout=5)
except:
# If anything goes wrong keep the URL intact
return url