Eric's bug: don't send HTTP/1.1 304 if the headers are already sent
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ function setDB() {
|
|||||||
$bib_is_unmodified
|
$bib_is_unmodified
|
||||||
&& (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])>filemtime($bib));
|
&& (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])>filemtime($bib));
|
||||||
} // end for each
|
} // end for each
|
||||||
if ( $bib_is_unmodified ) {
|
if ( $bib_is_unmodified && !headers_sent()) {
|
||||||
header("HTTP/1.1 304 Not Modified");
|
header("HTTP/1.1 304 Not Modified");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user