Adding fix for Bootstrap::SendHeader at set time for a non file.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user