Exemplo n.º 1
0
 protected function _out(Upfront_HttpResponse $out)
 {
     if (!$this->_debugger->is_active(Upfront_Debug::RESPONSE) && extension_loaded('zlib') && Upfront_OutputBehavior::has_compression()) {
         ob_start('ob_gzhandler');
     }
     status_header($out->get_status());
     header("Content-type: " . $out->get_content_type() . "; charset=utf-8");
     die($out->get_output());
 }