From 6cc106e4187fef1559c6ca5c1cfd3ded8cb67708 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Fri, 29 Oct 2010 12:44:19 +0200 Subject: [PATCH] Eric's bug: don't send HTTP/1.1 304 if the headers are already sent --- bibtexbrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index e823d85..30f94e4 100755 --- a/bibtexbrowser.php +++ b/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; }