Browse Source

Eric's bug: don't send HTTP/1.1 304 if the headers are already sent

hg/35a367e65a464cf6cdf277c73f977a6828b723fe/bookmarks/master
Martin Monperrus 15 years ago
parent
commit
aed417ecda
  1. 2
      bibtexbrowser.php

2
bibtexbrowser.php

@ -329,7 +329,7 @@ function setDB() {
$bib_is_unmodified
&& (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])>filemtime($bib));
} // end for each
if ( $bib_is_unmodified ) {
if ( $bib_is_unmodified && !headers_sent()) {
header("HTTP/1.1 304 Not Modified");
exit;
}

Loading…
Cancel
Save