bruno
bruno copied to clipboard
Fix: properly handling redirects with status code
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.
Publishing to New Package Managers
Please see here for more information.