Skip to content

Conversation

@gilbsgilbs
Copy link

@gilbsgilbs gilbsgilbs commented Nov 21, 2025

When downloading files, src.fedoraproject.org now requires the Accept header to be present. If the header is missing, it returns an HTML page instead of the requested file, causing a checksum mismatch.

This change adds the Accept: */* and User-Agent: BLDR/<version> headers to all HTTP downloads to prevent this issue.

This was discovered when glibc and libtirpc packages started to fail recently in the extensions repository[1].

[1] https://github.com/siderolabs/extensions/

@talos-bot talos-bot moved this to In Review in Planning Nov 21, 2025
When downloading files, src.fedoraproject.org now requires the Accept
header to be present. If the header is missing, it returns an HTML page
instead of the requested file, causing a checksum mismatch.

This change adds the "Accept: */*" and "User-Agent: BLDR/<version>"
headers to all HTTP downloads to prevent this issue.

This was discovered when glibc and libtirpc packages started to fail
recently in the extensions repository[1].

[1] https://github.com/siderolabs/extensions/

Signed-off-by: Gilbert Gilb's <[email protected]>
@gilbsgilbs gilbsgilbs changed the title fix(download): always send User-Agent and Accept headers fix(download): always send User-Agent and Accept headers (fix glibc and libtirpc build) Nov 21, 2025
@frezbo
Copy link
Member

frezbo commented Nov 22, 2025

Thanks for the fix. Extensions now use ubuntu mirrors since fedora project uses shasums in url which makes it not at all possible to update via automation

@gilbsgilbs
Copy link
Author

I needed to build glibc for v1.11 which still use fedora mirrors, unfortunately. I guess sending UA and Accept header is good practice regardless?

@frezbo
Copy link
Member

frezbo commented Nov 22, 2025

I needed to build glibc for v1.11 which still use fedora mirrors, unfortunately. I guess sending UA and Accept header is good practice regardless?

Yes, I was just pointing out the change we made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants