Skip to content

Set "Accept-Encoding: identity" header when curl'ing sources #88

Description

@vrothberg

Bringing the conversation from https://gitlab.com/redhat/hummingbird/rpms/-/merge_requests/66#note_2984270969 over here:

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions