-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Don't let Uri to escape query #2208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Deploying restsharp with
|
| Latest commit: |
04699ff
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://597b0e9e.restsharp.pages.dev |
| Branch Preview URL: | https://dont-encode-query.restsharp.pages.dev |
Test Results 32 files 32 suites 15m 0s ⏱️ For more details on these failures, see this check. Results for commit 04699ff. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||||||||
|
@copilot fix the merge conflicts |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
@alexeyzimarev I've opened a new pull request, #2344, to work on those changes. Once the pull request is ready, I'll request review from you. |
User description
Description
Fixes #2207
Purpose
This pull request is a:
PR Type
Bug fix
Description
Fix pipe character encoding in query parameters with
Encode=falseImplement proper query string parsing to preserve unencoded values
Add
DangerousDisablePathAndQueryCanonicalizationfor .NET 6+ URI handlingRefactor URI building to prevent automatic re-encoding of query strings
Diagram Walkthrough
File Walkthrough
2 files
New query string parser preserving encoded valuesReplace ToLowerInvariant with StringComparison2 files
Disable URI canonicalization for query preservationUse new parser for query string extraction5 files
Add test for pipe character preservationUpdate test for query parameter parsingFix assertion comparison orderRemove duplicate URI building testsAdd URI building assertion to test