Hi, everyone I am using OkHttp Engine for HttpClie...
# ktor
n
Hi, everyone I am using OkHttp Engine for HttpClient. And for POST request I am using EmptyContent body-type But OkHttp still complaining : POST requests must have Body. Setting EmptyContent is not enough? How can I set dummy empty bode?
e
Hi, @Nikolai. You could try to pass empty string.
r
@Nikolai Try setting the header
Content-Length
to
0
n
@e5l, @Riccardo Montagnin Thank you, setting empty string is working. If it will be not enough I will try to add header.