Skip to content

The HTTP Lockable Tarball is incorrectly implemented #168

@Tom-Hubrecht

Description

@Tom-Hubrecht

When trying to use the lockable tarball mechanism on https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.xz for example, the locked version is not detected. This is due to the fact that by default reqwest follows redirects, and that this url gives the link header in a 302 response.

Hence, reqwest will follow the 302 and get a different set of headers in the final 200 response that does not contain the link header.

The fix should be to set redirect(Policy::none()) while building the client used to fetch the tarball information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions