Index: branches/5.2.x/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r16363 -r16434 --- branches/5.2.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 16363) +++ branches/5.2.x/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 16434) @@ -1,6 +1,6 @@ _requestHeaders(); + $headers = $this->Application->HttpQuery->getHeaders(); // Checking if the client is validating his cache and if it is current. if ( isset($headers['If-Modified-Since']) && (strtotime($headers['If-Modified-Since']) > $last_modified - $params['cache']) ) { @@ -1095,29 +1095,6 @@ return ''; } - protected function _requestHeaders() - { - if ( function_exists('apache_request_headers') ) { - // If apache_request_headers() exists... - $headers = apache_request_headers(); - - if ($headers) { - return $headers; // And works... Use it - } - } - - $headers = Array (); - - foreach (array_keys($_SERVER) as $skey) { - if (substr($skey, 0, 5) == 'HTTP_') { - $headername = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($skey, 0, 5))))); - $headers[$headername] = $_SERVER[$skey]; - } - } - - return $headers; - } - function Header($params) { header($params['data']);