https://kotlinlang.org logo
#ktor
Title
# ktor
d

dave08

01/28/2019, 1:43 PM
Or do I really have to use the
JsonFeature
for this?
e

e5l

01/28/2019, 2:14 PM
Hi @dave08 🙂 You could use
ByteArrayContent
with string content and place
ContentType
there.
d

dave08

01/28/2019, 2:20 PM
I tried:
body = ByteArrayContent(jsonString.toByteArray())
, but I still got the same error...
Oh, nvm... I just put the content type in the ByteArrayContent params...
Thanks! That works 😁.
👍 1