ktorio / ktor

Framework for quickly creating connected applications in Kotlin with minimal effort
https://ktor.io
Apache License 2.0
13.07k stars 1.07k forks source link

parseUrlEncodedParameters Documentation #902

Open vonox7 opened 5 years ago

vonox7 commented 5 years ago

I read this tutorial https://ktor.io/advanced/utilities.html. This states that parseUrlEncodedParameters(...) is used to parse the form-url encoded data from the request body, but then I looked at the function source, the comment said Parse URL query parameters. Shouldn't be used for urlencoded forms because of "+" character. I assume this function is only ment to be used on the actual URL parameter, but not on the body. I also found a function parseQueryString(...) which produces the correct result on the body. Is this just an oversight in the docs, or am I missing something?

oleg-larshin commented 4 years ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.