Join Slack
Powered by
Found a small issue, this doesn’t work when using ...
# ktor
r
ribesg
06/05/2019, 8:58 AM
Found a small issue, this doesn’t work when using okhttp3 engine:
Copy code
<http://http.post|http.post>(url) { body = EmptyContent }
👀 1
ribesg
06/05/2019, 8:59 AM
I think that it passes null or something like that when building the request, and okhttp refuses a post request without a body
e
e5l
06/05/2019, 8:59 AM
Could you file an github issue?
r
ribesg
06/05/2019, 8:59 AM
It should pass something like that instead
https://stackoverflow.com/questions/35743516/how-to-make-okhttp-post-request-without-a-request-body
ribesg
06/05/2019, 8:59 AM
Yep
🙏 1
ribesg
06/05/2019, 9:02 AM
Wow my browser did a weird thing and posted 3 times, nice. But here it is
https://github.com/ktorio/ktor/issues/1175
🙏 1
Open in Slack
Previous
Next