We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ktor client version: 1.2.3
1.2.3
URLBuilder(host = "localhost").apply { path("?") parameters["?"] = "?" } .buildString() .also(::println)
will produce:
http://localhost/??%3F=%3F
I would expect the following url:
http://localhost/%3F?%3F=%3F
URLBuilder uses encodeURLQueryComponent function to encode a path: https://github.com/ktorio/ktor/blob/1.2.3/ktor-http/common/src/io/ktor/http/URLBuilder.kt#L50 Possibly it should use encodeURLPath?
URLBuilder
encodeURLQueryComponent
encodeURLPath
Not sure it is a bug, but a feature. Fixing it will break backward compatibility.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity.
Sorry, something went wrong.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
e5l
Successfully merging a pull request may close this issue.
Ktor client version:
1.2.3
will produce:
I would expect the following url:
URLBuilder
usesencodeURLQueryComponent
function to encode a path: https://github.com/ktorio/ktor/blob/1.2.3/ktor-http/common/src/io/ktor/http/URLBuilder.kt#L50Possibly it should use
encodeURLPath
?Not sure it is a bug, but a feature. Fixing it will break backward compatibility.
The text was updated successfully, but these errors were encountered: