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
mkporwit
08/30/2018, 2:47 AM
Yeah, I get that too… not sure what ambiguity deprecating ContentType was trying to fix, or what the fix looks like, though.
e
e5l
08/30/2018, 4:11 AM
The content type is part of
OutgoingContent
body now. If you want to set it, you have to replace it in body