diff --git a/backend/app/pypi_proxy.py b/backend/app/pypi_proxy.py index 5582fe0..54bd59e 100644 --- a/backend/app/pypi_proxy.py +++ b/backend/app/pypi_proxy.py @@ -528,7 +528,7 @@ def _cache_dependency_background( simple_url = f"{base_url}/pypi/simple/{normalized_name}/" logger.info(f"PyPI proxy: proactively caching {dep_name} (depth={depth})") - with httpx.Client(timeout=30.0) as client: + with httpx.Client(timeout=30.0, follow_redirects=True) as client: response = client.get(simple_url) if response.status_code != 200: logger.warning(f"PyPI proxy: failed to get index for {dep_name}: {response.status_code}")