In provider mode, Petals BC Rest uses the content-type of the REST response to auto-detect which kind of type is the HTTP body: XML, JSON or attachment. In few cases, the content-type is not correctly set. For example, it can be set to application/octet-stream and the body contains JSON data. So, in this case, the auto-detection of the body content must be forced to JSON.
We introduce an optional new parameter: response-body-as accepting values: json, xml, attachment and auto. By default, the auto-etection based on content-type is used.
Added in trunk