diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index e3d58a0b18..64d60481ce 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -299,6 +299,11 @@ class Response if (function_exists('fastcgi_finish_request')) { fastcgi_finish_request(); + } else { + while (0 < ob_get_level()) { + ob_end_flush(); + } + flush(); } return $this;