From: Andrew Dolgov Date: Thu, 21 Aug 2014 09:20:23 +0000 (+0400) Subject: remove ob_clean/flush shit as unneeded hacks from cached image output routines X-Git-Tag: 1.14~18 X-Git-Url: https://git.wh0rd.org/?p=tt-rss.git;a=commitdiff_plain;h=849c66b783ae97871c658c9db1a62abb0372e000 remove ob_clean/flush shit as unneeded hacks from cached image output routines --- diff --git a/image.php b/image.php index a134e658..dcc7d806 100644 --- a/image.php +++ b/image.php @@ -41,8 +41,6 @@ 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 { diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php index 6e62bde7..4e5f2d4f 100644 --- a/plugins/cache_starred_images/init.php +++ b/plugins/cache_starred_images/init.php @@ -62,8 +62,6 @@ class Cache_Starred_Images extends Plugin { 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 {