Merge pull request #574 from flightphp/fix/stream

Made stream default status code of 200
pull/575/head
n0nag0n 11 months ago committed by GitHub
commit a74ee3955c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -487,7 +487,7 @@ class Engine
// If this route is to be streamed, we need to output the headers now
if ($route->is_streamed === true) {
$response->status($route->streamed_headers['status']);
$response->status($route->streamed_headers['status'] ?? 200);
unset($route->streamed_headers['status']);
$response->header('X-Accel-Buffering', 'no');
$response->header('Connection', 'close');

Loading…
Cancel
Save