Merge pull request #1248 from JanC/content-type-fix

Better content type header parsing
This commit is contained in:
Alex Tselegidis 2022-05-10 14:33:09 +02:00 committed by GitHub
commit 739d26d914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class EA_Input extends CI_Input {
/** @var EA_Controller $CI */
$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;
}