When a content type is specified in the Fern definition, the default content type will be overwritten before sending the HTTP request. (the default being JSON or octet stream depending on the request type).
Notes:
Fix: Setting the content type on the HTTP request throws an exception in .NET, you need to set it on the headers of the content of the request.
I'm using MediaTypeHeaderValue.Parse which also accepts "...; charset=utf8" in case that's specified in the spec/definition.
When a content type is specified in the Fern definition, the default content type will be overwritten before sending the HTTP request. (the default being JSON or octet stream depending on the request type).
Notes:
MediaTypeHeaderValue.Parse
which also accepts "...; charset=utf8" in case that's specified in the spec/definition.