You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set "Accept-Encoding: identity" header when curl'ing sources #88
Looks like your tools are affected by https://pagure.io/fedora-infrastructure/issue/12812 or a similar issue from other servers that suffer from "content encoding confusion".
You will need to set the Accept-Encoding: identity HTTP header when doing source downloads, otherwise you get an on-the-fly un-gzipped file with a ".tar.gz" file extension (that is actually just an uncompressed "tar" file).
Setting header = \"Accept-Encoding: identity\" in the .curlrc fixes the issue but I think it would be great if dist-git could take care of it directly.
The only thing is that we set on the server content-type: application/octet-stream, but I believe that is wrong. The content is gzip-ed. And when we know, we should indicate it. It is client responsibility to indicate what he wants. And act accordingly.
Activity
set "Accept-Encoding: identity" header
xsuchy commentedon Jan 6, 2026
The only thing is that we set on the server
content-type: application/octet-stream, but I believe that is wrong. The content is gzip-ed. And when we know, we should indicate it. It is client responsibility to indicate what he wants. And act accordingly.xsuchy commentedon Jan 6, 2026
Hmm, we can add it here https://github.com/release-engineering/dist-git/blob/main/dist-git-client/dist_git_client.py#L111
vrothberg commentedon Jan 6, 2026
Yes, that's what I had in mind. As an immediate patch, we use the
.curlrctrick (see https://gitlab.com/redhat/hummingbird/rpms/-/merge_requests/144/diffs?commit_id=adc35f627bb9c9bc948e67a332bf15a1fc6fdad6) but other users may hit it as well.praiskup commentedon Jan 27, 2026
Per internal reports, this is breaking Fedora Copr builds, too:
https://download.copr.fedorainfracloud.org/results/r0x0d/rust-rmcp/fedora-rawhide-x86_64/10069658-rust-rmcp/builder-live.log.gz
set "Accept-Encoding: identity" header
set "Accept-Encoding: identity" header
set "Accept-Encoding: identity" header
set "Accept-Encoding: identity" header
set "Accept-Encoding: identity" header
set "Accept-Encoding: identity" header
dist-git-client: ask dist-git httpd server to send response as-is
dist-git-client: ask dist-git httpd server to send response as-is