https://kotlinlang.org logo
Title
s

Satyam Agarwal

10/12/2020, 3:32 PM
Hei, I am using
HttpRequestBuilder
block with
url(completePath)
and it is encoding my query string. How can I stop encoding of query string. For ktor http client jvm with CIO
e

Eric Grimsborn

10/13/2020, 5:41 PM
Why should it not encode them? Could you give some more context? Maybe an example and what the problem you want to solve?
j

Jim

10/14/2020, 6:33 PM
I have a use case for this as well. A 3rd party API I'm trying to interact with doesn't do url decoding for certain endpoints and I'd like to be able to override the request that ktor makes to prevent it form url encoding my url 😂
It looks like someone already did the work but it's been dead for almost a year: https://github.com/ktorio/ktor/pull/1352