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 */
|
/** @var EA_Controller $CI */
|
||||||
$CI = &get_instance();
|
$CI = &get_instance();
|
||||||
|
|
||||||
|
foreach ($headers as $header)
|
||||||
|
{
|
||||||
|
$CI->output->set_header($header);
|
||||||
|
}
|
||||||
|
|
||||||
$CI
|
$CI
|
||||||
->output
|
->output
|
||||||
|
->set_status_header($status)
|
||||||
->set_output($content);
|
->set_output($content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue