mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
Better content type header parsing
This commit is contained in:
parent
227612565d
commit
a8ef23f81d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue