diff --git a/application/core/EA_Input.php b/application/core/EA_Input.php index fde0ce7c..f4ef1b3d 100644 --- a/application/core/EA_Input.php +++ b/application/core/EA_Input.php @@ -57,7 +57,7 @@ class EA_Input extends CI_Input { if ($CI->input->get_request_header('Content-Type') !== 'application/json') { - throw new RuntimeException('Cannot get JSON attribute from non-JSON content.'); + return NULL; } $input_stream = $CI->input->raw_input_stream;