Skip to content

fix: preserve methods across 301 and 302 redirects#850

Merged
ryanfowler merged 1 commit into
mainfrom
fix/preserve-redirect-methods
Jul 12, 2026
Merged

fix: preserve methods across 301 and 302 redirects#850
ryanfowler merged 1 commit into
mainfrom
fix/preserve-redirect-methods

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • rewrite only POST requests to GET for 301 and 302 redirects
  • preserve non-POST methods and replayable bodies across redirects
  • keep final redirected method and body during Digest authentication retries
  • add redirect semantics and Digest integration regression coverage

Validation

  • cargo fmt --check
  • cargo test --locked --all-features --lib --bins
  • cargo test --locked --all-features --test http digest_auth_preserves_put_body_after_found_redirect

@ryanfowler ryanfowler enabled auto-merge July 12, 2026 00:04
@ryanfowler ryanfowler merged commit 1c6c9fc into main Jul 12, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix/preserve-redirect-methods branch July 12, 2026 00:09
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.

1 participant