openstack.net icon indicating copy to clipboard operation
openstack.net copied to clipboard

The Content-Type header is ignored prior to JSON deserialization

Open sharwell opened this issue 12 years ago • 0 comments

The SDK should never attempt to deserialize the response as JSON if the Content-Type header of the response does not match the Accept header of the request. Currently, the Content-Type header is ignored, resulting in a JsonException if the response is not actually JSON.

sharwell avatar Jan 03 '14 21:01 sharwell