Skip to content

Commit ca05858

Browse files
committed
Revert "bug #19114 [HttpKernel] Dont close the reponse stream in debug (nicolas-grekas)"
This reverts commit a0cdcb0, reversing changes made to 9c8a3e9.
1 parent 3a27cd5 commit ca05858

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Kernel.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,6 @@ public function terminate(Request $request, Response $response)
149149
}
150150

151151
if ($this->getHttpKernel() instanceof TerminableInterface) {
152-
if (!$this->debug) {
153-
if (function_exists('fastcgi_finish_request')) {
154-
fastcgi_finish_request();
155-
} elseif ('cli' !== PHP_SAPI) {
156-
Response::closeOutputBuffers(0, true);
157-
}
158-
}
159-
160152
$this->getHttpKernel()->terminate($request, $response);
161153
}
162154
}

0 commit comments

Comments
 (0)