davidik1 opened a new pull request, #637:
URL: https://github.com/apache/pekko-http/pull/637

   `Uri.withQuery` receives a `Query` object, converts it to a string, and then 
calls the `Uri.copy` method which creates a new `Uri` object with the given 
query (The `Uri` class holds the query as an un-parsed string).
   The `copy` method ends up in `queryString.map(new 
UriParser(_).parseRawQueryString())` which percent-encodes the query string.
   As in this flow, the query string is converted from a `Query` object, it is 
always percent-encoded, so the additional encoding operation is unnecessary. We 
can skip it by replacing the call to `copy` with `createUnsafe`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to