Fixes GHSA-m435-9v6r-v5f6

This commit is contained in:
Ajin.Abraham
2024-03-22 16:43:43 -07:00
parent 7645cee99e
commit f22c584aa7
@@ -84,12 +84,15 @@ def _check_url(host, w_url):
status_code = 0
r = requests.get(w_url,
allow_redirects=True,
allow_redirects=False,
proxies=proxies,
verify=verify,
timeout=5)
status_code = r.status_code
if status_code == 302:
logger.warning('302 Redirect detected, skipping check')
status = False
if (str(status_code).startswith('2') and iden in str(r.json())):
status = True