mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
If the request does not have the application/json content type header then return NULL
This commit is contained in:
parent
d886f6db16
commit
8947500968
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class EA_Input extends CI_Input {
|
||||||
|
|
||||||
if ($CI->input->get_request_header('Content-Type') !== 'application/json')
|
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;
|
$input_stream = $CI->input->raw_input_stream;
|
||||||
|
|
Loading…
Reference in a new issue