khttp icon indicating copy to clipboard operation
khttp copied to clipboard

Cannot connect to url with underscore "_".

Open rtazaki opened this issue 4 years ago • 0 comments

issue

try {
    khttp.post("http://example_path:50000/test", json = mapOf("key" to "value"))
} catch (e: Exception) {
    println(e) // => java.net.URISyntaxException: Illegal character in hostname at index 14: 
}

cause

stackoverflow uri,url

hope

post successful. (like a Fuel)

test-env:

sample code

rtazaki avatar Mar 14 '20 07:03 rtazaki