Signed-off-by: Koen Schmeets <k.schmeets@gmail.com>
@@ -178,4 +178,8 @@ $response->send();
|
*/
-Event::fire('laravel.done', array($response));
+Event::fire('laravel.done', array($response));
+
+if (function_exists('fastcgi_finish_request')) {
+ fastcgi_finish_request();
+}
@@ -292,10 +292,6 @@ class Response
$this->sendHeaders();
$this->sendContent();
- if (function_exists('fastcgi_finish_request')) {
- fastcgi_finish_request();
- }
-
return $this;
}