You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix#2207: Prevent Uri constructor from re-encoding pipe character when encode=false
The issue was that when AddQueryParameter was called with encode=false,
the pipe character (|) was still being encoded to %7C. This happened
because the AddQueryString method was creating a new Uri object directly,
and the Uri constructor automatically encodes certain characters including
the pipe character.
The fix uses UriBuilder instead, which preserves the query string as-is
without re-encoding it. This ensures that when encode=false is specified,
characters like pipe (|) remain unencoded as expected.
Added test case to verify pipe character is not encoded when encode=false.
* Fix issue #2207: Preserve unencoded characters in query parameters when encode=false
- Modified BuildUriExtensions to add BuildUriString method that returns a string URI
- Updated RestClient.Async to use string URI for HttpRequestMessage to preserve unencoded characters
- Added RawUrl property to RequestBodyCapturer to capture the actual URL string sent over HTTP
- Added integration test to verify pipe character is not encoded when encode=false
- All existing tests pass
* Fix pipe encoding issue
* Remove usage of BuildUrl
0 commit comments