ktor
ktor copied to clipboard
Issue #1903. Added code to parse the url if valid else return null
Subsystem ktor-Http
Motivation issue #1903. Currently the Url parse return valid url when a bogus url is passed.
Solution
Added a function to the Url Companion object, which parse the urlstring and return the valid url if present else returns null instead of appending http://localhost
to the invalid url