Fixed bug with the response content type for a REST request

Fixed a bug on the response content type when using a REST service