Skip to content

Fix chained redirects and plain HTTP checks - #23

Merged
dblock merged 1 commit into
mainfrom
fix/redirects-and-http-scheme
Nov 7, 2026
Merged

dblock merged 1 commit into
mainfrom
fix/redirects-and-http-scheme

Conversation

@dblock

@dblock dblock commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Changes

Resolve relative redirects against the current response URL, normalize the initial loop-detection URL, preserve original/final URLs in redirect errors, and bound chains with validated max_redirects (default 20; zero disables redirects). Net::HTTP now selects TLS from the URL scheme. Correct the retry option documentation and describe its shared budget.

Shared regression tests cover all three backends. Replay setup uses WebMock consistently and lets the Async adapter generate Content-Length, avoiding duplicate framing headers with current dependencies.

Validation

bundle exec rubocop passed. Targeted checker/config/task specs: 130 examples, zero failures. git diff --check passed.

Fixes #7.

Implemented by AI on behalf of @dblock.

@codecov-commenter

codecov-commenter commented Nov 7, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c640c4f) to head (a983ee7).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #23   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           23        24    +1     
  Lines          486       502   +16     
=========================================
+ Hits           486       502   +16     

☔ 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.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock
dblock force-pushed the fix/redirects-and-http-scheme branch from fcce96e to a983ee7 Compare November 7, 2026 12:58
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

@dblock
dblock merged commit a7f894a into main Nov 7, 2026
10 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.

Configure HTTP/S schemes

2 participants