Skip to content

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

Open
donbowman wants to merge 6 commits intoadbar:masterfrom
donbowman:support-500
Open

fix: fallback to GET from HEAD in redirect check on 500#128
donbowman wants to merge 6 commits intoadbar:masterfrom
donbowman:support-500

Conversation

@donbowman
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

adbar commented Dec 19, 2025

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
Copy link
Copy Markdown

codecov bot commented Jan 13, 2026

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.35%. Comparing base (6ee9ce9) to head (94e8dc2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
courlan/network.py 77.77% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##            master     #128      +/-   ##
===========================================
- Coverage   100.00%   94.35%   -5.65%     
===========================================
  Files           11       11              
  Lines          825      833       +8     
===========================================
- Hits           825      786      -39     
- Misses           0       47      +47     

☔ View full report in Codecov by Sentry.
📢 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.

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