Fix redirect for 1337xx

This commit is contained in:
Lovi 2024-10-25 12:09:14 +02:00
parent ce0dc7ad78
commit f09add2074

View File

@ -76,7 +76,7 @@ def search_domain(site_name: str, base_url: str):
try: try:
# Test the current domain # Test the current domain
response_follow = httpx.get(f"{base_url}.{domain}", headers={'user-agent': get_headers()}, timeout=2) response_follow = httpx.get(f"{base_url}.{domain}", headers={'user-agent': get_headers()}, timeout=4, follow_redirects=True)
console.print(f"[cyan]Response site[white]: [red]{response_follow.status_code}") console.print(f"[cyan]Response site[white]: [red]{response_follow.status_code}")
response_follow.raise_for_status() response_follow.raise_for_status()