Commit bde0fae
committed
fix(download): always send User-Agent and Accept headers
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]>1 parent fad96f3 commit bde0fae
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| |||
0 commit comments