diff --git a/application/helpers/http_helper.php b/application/helpers/http_helper.php index 82c9c1b0..8ab8c933 100644 --- a/application/helpers/http_helper.php +++ b/application/helpers/http_helper.php @@ -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); } }