diff --git a/aider/scrape.py b/aider/scrape.py index 317d3f011..72e2c7ed9 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -185,7 +185,7 @@ class Scraper: headers = {"User-Agent": f"Mozilla./5.0 ({aider_user_agent})"} try: - with httpx.Client(headers=headers, verify=self.verify_ssl) as client: + with httpx.Client(headers=headers, verify=self.verify_ssl, follow_redirects=True) as client: response = client.get(url) response.raise_for_status() return response.text, response.headers.get("content-type", "").split(";")[0]