Skip to content

Support redirect for head request for downloads#68

Merged
jessevz merged 2 commits intomasterfrom
fix-819
Mar 19, 2026
Merged

Support redirect for head request for downloads#68
jessevz merged 2 commits intomasterfrom
fix-819

Conversation

@jessevz
Copy link
Collaborator

@jessevz jessevz commented Mar 17, 2026

closes hashtopolis/server#819. The reason this error occurs, is that a HEAD request does not follow a redirect by default. So when someone migrates to https, where a redirect is setup to redirect requests to port 443, the head request for binaries on the server will not work because the head request will not be redirected resulting in a failing download.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses download failures when the server redirects (e.g., HTTP→HTTPS) by ensuring the client’s pre-download HEAD request follows redirects, matching the behavior of the subsequent GET.

Changes:

  • Enable redirect following for HEAD requests during download header validation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@jessevz jessevz merged commit af003a4 into master Mar 19, 2026
@jessevz jessevz deleted the fix-819 branch March 19, 2026 09:27
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.

[BUG] hashcat client does not download any file and fails after migration to HTTPS

3 participants