Jump to content

WebService with output_format=JSON response output type incorrect


radboudp

Recommended Posts

Dear all,

 

When using the webservice with  output_format=JSON the reponse content-type is 'text/html' but should be 'application/json'.

 

Stangly enough, the PHP code file WebserviceOutputJSON.php has the following method for the content-type:

 

public function getContentType()
{
    return 'text/html';
    return 'application/json';
}
 
Obviously, the second return statement is never reached. In my opnion the first return statement should be removed.
 
Does anyone know where to post a bug report?
 
Regards,
Radboud
Link to comment
Share on other sites

×
×
  • Create New...