techjoomla / com_api

API framework for Joomla
http://docs.techjoomla.com/joomla-rest-api/com-api-introduction
GNU General Public License v3.0
123 stars 97 forks source link

input in JSON format not working #121

Open bokoth opened 4 years ago

bokoth commented 4 years ago

json_issue png

According to the code in the attached file components/com_api/libraries/plugin.php com_api should support JSON input, but this is not the case

$app->input->server->get('CONTENT_TYPE')

returns applicationjson instead of application/json meaning that clause is never executed, could you please fix this?