I have an OData controller with 'Put' and 'Post' actions. When I post Content-Type:application/json, I get an HttpResponseException with '415: unsupported media type'. The only Content-Type that the controller won't throw an exception on is the application/x-www-urlformencoded. But that is not the content type that I want to accept.
Why does the odata controller not accept application/json? I don't see anything in the configuration of the controller that restricts the accepted content types.
I remember the same code working in the past. Soemthing seems to have regressed it. Where should I look?