fix: handle form-urlencoded content type with charset#8397
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
WalkthroughThe PR adds a shared ChangesForm URL Encoded detection
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Linked to #8377. I verified the fix locally with:
I also manually tested Bruno Desktop with |
Description
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.
Fixes #8377
This normalizes the Content-Type media type before detecting form-urlencoded requests, so values like
application/x-www-form-urlencoded;charset=UTF-8still use the form-url-encoded serialization and interpolation path.VSCode extension does not reproduce the issue because parts of its request path also use the body mode as a fallback. This PR keeps the Desktop/CLI fix focused on recognizing valid Content-Type media type parameters.
Tests:
Content-Type: application/x-www-form-urlencoded;charset=UTF-8, verified request body istermId=123&question=helloSummary by CodeRabbit
Bug Fixes
application/x-www-form-urlencodedrequests, including values with additional parameters likecharset.Tests