1

Closed

WebApi Parameter Binding

description

The WebApi parameter Bindings passes null values to methods when the client fails to specify the content-type i.e. content-type: application/json

I would consider this to be a weakness in the WebApi implementation and would expect the WebApi to detected that the client has called the WebApi without specifying a content-type and report the back with an HTTP status code of BadRequest with a description of ' "content-type" header missing.'

This of course should be allowed to be overridden by the developer, if required.
Closed Feb 15, 2013 at 11:33 PM by HongmeiG
This is a dup of issue 281, and we will work on a fix ASAP.

comments