Adding fix for Bootstrap::SendHeader at set time for a non file.

This commit is contained in:
ralph
2012-11-22 16:55:52 -04:00
parent d7962637a8
commit 7b2a2a8300

View File

@@ -397,7 +397,7 @@ class Bootstrap
break;
case 'php':
if ($download) {
G::sendHeaders( $filename, 'text/plain', $download, $downloadFileName );
Bootstrap::sendHeaders( $filename, 'text/plain', $download, $downloadFileName );
} else {
require_once ($filename);
return;
@@ -1101,7 +1101,11 @@ class Bootstrap
// if ( ereg("msie", $userAgent)) {
header ( 'Pragma: cache' );
if (file_exists ( $filename )) {
$mtime = filemtime ( $filename );
} else {
$mtime = date ( 'U' );
}
$gmt_mtime = gmdate ( "D, d M Y H:i:s", $mtime ) . " GMT";
header ( 'ETag: "' . md5 ( $mtime . $filename ) . '"' );
header ( "Last-Modified: " . $gmt_mtime );