I'm new to Ktor and having a problem with receivin...
# ktor
v
I'm new to Ktor and having a problem with receiving a post - I'm sending a really simple bit of JSON
{"title":"AA","slug":"BB"}
and I've got an equally simple Serialiable
data class TestForm(val title: String, val slug: String)
. Posting the JSON from my web page gets a 415 Unsupported Media Type error. What am I likely to have got wrong in setting up ContentNegotiation?
Never mind... I hadn't set the Content-Type in the Javascript fetch() call. No frameworks being used here...
👍 1