Better content type header parsing

This commit is contained in:
Jan Chaloupecky 2022-04-25 10:12:01 +02:00
parent 227612565d
commit a8ef23f81d

View file

@ -55,7 +55,7 @@ class EA_Input extends CI_Input {
/** @var EA_Controller $CI */ /** @var EA_Controller $CI */
$CI = &get_instance(); $CI = &get_instance();
if ($CI->input->get_request_header('Content-Type') !== 'application/json') if (strpos($CI->input->get_request_header('Content-Type'), 'application/json') === false)
{ {
return NULL; return NULL;
} }