allow head requests to follow redirects
This commit is contained in:
parent
989d1ab726
commit
8225efe9cc
|
@ -21,7 +21,7 @@ def isup(bot, trigger):
|
|||
url = "http://" + url
|
||||
|
||||
try:
|
||||
res = requests.head(url, timeout=10, verify=True)
|
||||
res = requests.head(url, timeout=10, allow_redirects=True)
|
||||
except (requests.exceptions.MissingSchema,
|
||||
requests.exceptions.InvalidSchema):
|
||||
return bot.msg("Missing or invalid schema. Check the URL.")
|
||||
|
|
Loading…
Reference in New Issue
Block a user