From 0bb73a501c0201ff5db845e60f34fcd96aebe24e Mon Sep 17 00:00:00 2001 From: AntonyAsatiani Date: Fri, 3 May 2024 15:02:06 +0400 Subject: [PATCH] add follow redirect --- url-status-checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url-status-checker.py b/url-status-checker.py index b6551f4..d454176 100644 --- a/url-status-checker.py +++ b/url-status-checker.py @@ -68,7 +68,7 @@ async def main(): print("No input provided. Use -d or -l option.") return - async with httpx.AsyncClient() as session: + async with httpx.AsyncClient(follow_redirects=True) as session: results = {} tasks = [check_url_status(session, url_id, url) for url_id, url in enumerate(urls)] if len(urls) > 1: