Skip to content

Conversation

@lamdor
Copy link

@lamdor lamdor commented Dec 12, 2025

Some Web Application Firewalls (like CloudFront used by JuliaHub) block requests without a User-Agent header, returning 403 Forbidden. This caused confusing "Failed to get etag" errors when using JULIAUP_SERVER with alternate mirrors.

Add a helper function http_client() that creates a reqwest client with a proper User-Agent header (juliaup/{version}), and use it for all HTTP requests on non-Windows platforms. Likewise for the windows HTTP client.

Some Web Application Firewalls (like CloudFront used by JuliaHub) block requests without a
User-Agent header, returning 403 Forbidden. This caused confusing
"Failed to get etag" errors when using JULIAUP_SERVER with alternate
mirrors.

Add a helper function http_client() that creates a reqwest client with
a proper User-Agent header (juliaup/{version}), and use it for all HTTP
requests on non-Windows platforms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant