diff --git a/backend/app/pypi_proxy.py b/backend/app/pypi_proxy.py index 9cbaa9a..164995f 100644 --- a/backend/app/pypi_proxy.py +++ b/backend/app/pypi_proxy.py @@ -180,7 +180,8 @@ async def pypi_simple_index( headers.update(_build_auth_headers(source)) auth = _get_basic_auth(source) - simple_url = source.url.rstrip('/') + '/simple/' + # Use URL as-is - users should provide full path including /simple + simple_url = source.url.rstrip('/') + '/' timeout = httpx.Timeout(PROXY_READ_TIMEOUT, connect=PROXY_CONNECT_TIMEOUT) @@ -268,7 +269,8 @@ async def pypi_package_versions( headers.update(_build_auth_headers(source)) auth = _get_basic_auth(source) - package_url = source.url.rstrip('/') + f'/simple/{normalized_name}/' + # Use URL as-is - users should provide full path including /simple + package_url = source.url.rstrip('/') + f'/{normalized_name}/' final_url = package_url # Track final URL after redirects timeout = httpx.Timeout(PROXY_READ_TIMEOUT, connect=PROXY_CONNECT_TIMEOUT)