bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Fix: properly handling redirects with status code

Open naman-bruno opened this issue 8 months ago • 0 comments

Description

Fixes: #4397

Previously, Bruno was preserving the original HTTP method (e.g., POST) across all redirects, regardless of the redirect status code. This led to incorrect behavior for status codes like 301, 302, and 303, which should convert the method to GET in most cases.

Redirect handling now respects the HTTP spec.

Contribution Checklist:

  • [x] The pull request only addresses one issue or adds one feature.
  • [x] The pull request does not introduce any breaking changes
  • [x] I have added screenshots or gifs to help explain the change if applicable.
  • [x] I have read the contribution guidelines.
  • [x] Create an issue and link to the pull request.
Screenshot 2025-04-25 at 1 12 22 PM

Publishing to New Package Managers

Please see here for more information.

naman-bruno avatar Apr 25 '25 07:04 naman-bruno