summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--image.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/image.php b/image.php
index dcc7d806d..a134e658e 100644
--- a/image.php
+++ b/image.php
@@ -41,6 +41,8 @@
header("Content-type: image/png");
$stamp = gmdate("D, d M Y H:i:s", filemtime($filename)). " GMT";
header("Last-Modified: $stamp", true);
+ ob_clean(); // discard any data in the output buffer (if possible)
+ flush(); // flush headers (if possible)
readfile($filename);
}
} else {