diff --git a/flight/Engine.php b/flight/Engine.php index 03e495b..006d375 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -273,6 +273,11 @@ class Engine { public function _start() { $dispatched = false; + // Flush any existing output + if (ob_get_length() > 0) { + $this->response()->write(ob_get_contents()); + } + // Enable output buffering ob_start();