Skip to content

fix: fallback to GET from HEAD in redirect check on 500 - #128

Merged
adbar merged 9 commits into
adbar:masterfrom
donbowman:support-500
Nov 27, 2026
Merged

adbar merged 9 commits into
adbar:masterfrom
donbowman:support-500

Conversation

@donbowman

Copy link
Copy Markdown
Contributor

Some sites do not implement HEAD, giving a 500, but, are otherwise valid sites. Fallback to GET in this case.

Resolves #126

donbowman and others added 2 commits November 15, 2025 11:10
Some sites do not implement HEAD, giving a 500, but, are
otherwise valid sites. Fallback to GET in this case.

Resolves adbar#126
@adbar

adbar commented Dec 19, 2025 •

Copy link
Copy Markdown
Owner

Thanks @donbowman, I just added a few changes. IMO the tests are failing because the CI pipeline hasn't been updated. Merging main into the branch should fix it.

@codecov

codecov Bot commented Jan 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4875589) to head (db71160).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #128   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           14        14           
  Lines         1232      1238    +6     
  Branches       215       216    +1     
=========================================
+ Hits          1232      1238    +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adbar

adbar commented Nov 13, 2026

Copy link
Copy Markdown
Owner

@donbowman Could you make sure there are no merge conflicts and the tests pass? That includes code coverage.

@adbar

adbar commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Some servers do not implement HEAD and answer 405, 500 or 501. Fall back to a headers-only GET in that case. HEAD is not retried on these codes, and other requests keep retrying on 500.

@adbar
adbar merged commit 2f1ad99 into adbar:master Nov 27, 2026
12 checks passed
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.

Fallback to GET on top of HEAD in redirection_test

2 participants