Closed talanov closed 5 years ago
1.1.2
Multiplatform/client (io.ktor:ktor-client-core, io.ktor:ktor-client-core-jvm)
Tested on Android 8.1.0
Code sample
url { protocol = URLProtocol.HTTPS host = endpoint.url // String: "url.com" parameters.append(name = "before", value = endpoint.parameters.get("before")) parameters.append(name = "limit", value = (endpoint.parameters.get("limit") as? Int).toString() } println(url.buildString().toString()) }
Prints:
https://url.com/?before=now&limit=50
Expected:
https://url.com?before=now&limit=50
Also if I'm trying to do this:
url("https://url.com?before=now&limit=50"), I'm getting Fail to parse url: https://url.com?before=now&limit=50
url("https://url.com?before=now&limit=50")
Fail to parse url: https://url.com?before=now&limit=50
Ktor Version:
1.1.2
Ktor Engine Used(client or server and name):
Multiplatform/client (io.ktor:ktor-client-core, io.ktor:ktor-client-core-jvm)
JVM Version, Operating System and Relevant Context:
Tested on Android 8.1.0
Feedback
Code sample
Prints:
https://url.com/?before=now&limit=50
Expected:
https://url.com?before=now&limit=50