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 Version and Engine Used (client or server and name) io.ktor:ktor-server-cio:1.3.2
Describe the bug The colon after the host parameter requires a port(see https://tools.ietf.org/html/rfc3986#section-3.2.3)
To Reproduce Steps to reproduce the behavior: Run code:
import io.ktor.http.cio.parseRequest import io.ktor.utils.io.ByteReadChannel import kotlinx.coroutines.runBlocking fun main() { test( """ GET / HTTP/1.1 Host: www.example.com: """.trimIndent() ) } fun test(http: String) { val request = runBlocking { parseRequest(ByteReadChannel(http)) }!! println("method=${request.method};uri={${request.uri}};headers=[${request.headers}]") }
Expected behavior An error expected - exception or null result.
The text was updated successfully, but these errors were encountered:
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Sorry, something went wrong.
e5l
No branches or pull requests
Ktor Version and Engine Used (client or server and name)
io.ktor:ktor-server-cio:1.3.2
Describe the bug
The colon after the host parameter requires a port(see https://tools.ietf.org/html/rfc3986#section-3.2.3)
To Reproduce
Steps to reproduce the behavior:
Run code:
Expected behavior
An error expected - exception or null result.
The text was updated successfully, but these errors were encountered: