]> git.wh0rd.org Git - tt-rss.git/commitdiff
Revert "add (hidden) _NGINX_XACCEL_PREFIX which uses nginx X-Accel-Redirect to serve...
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 20 Aug 2018 09:48:23 +0000 (12:48 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 20 Aug 2018 09:48:23 +0000 (12:48 +0300)
This reverts commit c5c3a0a2a8febaa2b1ebcae6c17ff4398a9da6c7.

include/functions.php

index 8acea8ef49e652eda2c24f0a79c7dd8a8be7e8d9..fe0586678aaa1b3cc5aca64c55f478bee9e3b860 100755 (executable)
                        $stamp = gmdate("D, d M Y H:i:s", filemtime($filename)) . " GMT";
                        header("Last-Modified: $stamp", true);
 
-                       if (defined('_NGINX_XACCEL_PREFIX') && _NGINX_XACCEL_PREFIX) {
-                               header("X-Accel-Redirect: " . _NGINX_XACCEL_PREFIX . "/" . $filename);
-
-                               return false;
-                       } else {
-                               return readfile($filename);
-                       }
+                       return readfile($filename);
                } else {
                        return false;
                }