From b65280f3c92d65a52a3397248ed52fd3c51e9b0a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 28 Apr 2015 17:34:59 -0600 Subject: [PATCH] added other close bits back for gzip close connection --- system/src/Grav/Common/Grav.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index 19d48f396..09a207fb9 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -366,10 +366,12 @@ class Grav extends Container // get lengh and close the connection header('Content-Length: ' . ob_get_length()); - header("Connection: close\r\n"); + header("Connection: close"); // flush the regular buffer ob_end_flush(); + @ob_flush(); + flush(); // fix for fastcgi close connection issue if (function_exists('fastcgi_finish_request')) {