mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 10:02:33 +03:00
The response helper function must properly set the status code and the headers
This commit is contained in:
parent
3c5be0d12b
commit
95a4e94a53
1 changed files with 6 additions and 0 deletions
|
@ -66,8 +66,14 @@ if ( ! function_exists('response'))
|
|||
/** @var EA_Controller $CI */
|
||||
$CI = &get_instance();
|
||||
|
||||
foreach ($headers as $header)
|
||||
{
|
||||
$CI->output->set_header($header);
|
||||
}
|
||||
|
||||
$CI
|
||||
->output
|
||||
->set_status_header($status)
|
||||
->set_output($content);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue