From 3c173f9615dd10fd4ae1c35d6d02b4d38ede651c Mon Sep 17 00:00:00 2001 From: Barys Biankouski Date: Wed, 25 Jul 2018 19:14:56 +0300 Subject: [PATCH] Flush output for fastcgi SAPI --- external/header.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/header.php b/external/header.php index d04de62..b8560c2 100644 --- a/external/header.php +++ b/external/header.php @@ -125,6 +125,9 @@ function () { // since we're delaying that a bit by dealing with the xhprof stuff, we'll do it now to avoid making the user wait. ignore_user_abort(true); flush(); + if (function_exists('fastcgi_finish_request')) { + fastcgi_finish_request(); + } if (!defined('XHGUI_ROOT_DIR')) { require dirname(dirname(__FILE__)) . '/src/bootstrap.php';