Is there a way to specify content type while makin...
# ktor
m
Is there a way to specify content type while making http requests? I am getting UnsafeHeaderException: Header Content is controlled by the engine and cannot be set explicitly
📝 1
1
m
Yeah, I get that too… not sure what ambiguity deprecating ContentType was trying to fix, or what the fix looks like, though.
e
The content type is part of
OutgoingContent
body now. If you want to set it, you have to replace it in body
d