Skip to content

Retrieved sources via GET instead of HEAD#138

Merged
EbonJaeger merged 1 commit intomainfrom
get-directly
Jan 16, 2026
Merged

Retrieved sources via GET instead of HEAD#138
EbonJaeger merged 1 commit intomainfrom
get-directly

Conversation

@silkeh
Copy link
Member

@silkeh silkeh commented Jan 14, 2026

Let grab follow the redirects with the GET method directly instead of manually resolving them via HEAD.

This works around an issue where HEAD would result in a redirect URL that is not valid using GET seen on the freedesktop.org GitLab instance.

Let `grab` follow the redirects with the `GET` method directly instead of manually resolving them via `HEAD`.

This works around an issue where `HEAD` would result in a redirect URL that is not valid using `GET`
seen on the freedesktop.org GitLab instance.
@silkeh
Copy link
Member Author

silkeh commented Jan 14, 2026

Tested this for a sourceforge source as that was the original reason for the HEAD requests. It still works, but is a bit more verbose:

 ✚  Downloading source uri=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz
 ✓  Source URL redirected to=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz/ from=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz
 ✓  Source URL redirected to=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz/download from=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz/
 ✓  Source URL redirected to="https://downloads.sourceforge.net/project/dvdauthor/dvdauthor-0.7.2.tar.gz?ts=gAAAAABpZ7OqkbHoHv_Iy0khIZByaO5Si70KB8ZaK08ahndiaNJfw93a8DkqAA2-6QZqnb1le2srb4rsXEGP1wzqLwF9OVMDAA%3D%3D&use_mirror=netix&r=" from=https://sourceforge.net/projects/dvdauthor/files/dvdauthor-0.7.2.tar.gz/download
 ✓  Source URL redirected to="https://netix.dl.sourceforge.net/project/dvdauthor/dvdauthor-0.7.2.tar.gz?viasf=1" from="https://downloads.sourceforge.net/project/dvdauthor/dvdauthor-0.7.2.tar.gz?ts=gAAAAABpZ7OqkbHoHv_Iy0khIZByaO5Si70KB8ZaK08ahndiaNJfw93a8DkqAA2-6QZqnb1le2srb4rsXEGP1wzqLwF9OVMDAA%3D%3D&use_mirror=netix&r="

@silkeh silkeh marked this pull request as ready for review January 16, 2026 20:55
Copy link
Member

@EbonJaeger EbonJaeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! This makes downloading uploaded release assets from GitLab work.

@EbonJaeger EbonJaeger merged commit cb5fd18 into main Jan 16, 2026
1 check passed
@EbonJaeger EbonJaeger deleted the get-directly branch January 16, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants