mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Fix redirect for 1337xx
This commit is contained in:
parent
ce0dc7ad78
commit
f09add2074
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user