https://kotlinlang.org logo
Title
a

avolkmann

03/13/2019, 3:17 PM
Is it intended that the client can't resolve urls without a protocol?
127.0.0.1:3500
works find with curl, but not from ktor
e

e5l

03/13/2019, 3:19 PM
Hi @avolkmann, there is no alpn implementation in ktor. What protocol did you expect?
a

avolkmann

03/13/2019, 3:25 PM
@e5l I was expecting a call to
127.0.0.1:3500
to work without adding
<http://127.0.0.1:3500>
e

e5l

03/13/2019, 3:26 PM
Could you file an issue? Probably we should fix it
a

avolkmann

03/13/2019, 3:26 PM
sure
e

elizarov

03/13/2019, 3:32 PM
Or note? Why would an insecure (http) protocol shall be a default? That requires some discussion in any case.
e

e5l

03/13/2019, 3:34 PM
It’s not about defaulting, we probably need a common negotiation protocol(like alpn).
👍 1
a

avolkmann

03/13/2019, 3:44 PM
I would be fine with the current way, if there was an exception being thrown to indicate that I didn't specify a protocol
🤔 1
I ended up checking the network first, which wasted a lot of time