Merge pull request #1248 from JanC/content-type-fix
Better content type header parsing
This commit is contained in:
commit
739d26d914
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