pull/643/merge
Pierre 1 week ago committed by GitHub
commit 8c66788300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -913,7 +913,11 @@ class Engine
->status($code) ->status($code)
->header('Content-Type', 'application/json') ->header('Content-Type', 'application/json')
->write($json); ->write($json);
if ($this->response()->v2_output_buffering === true) {
if (
$this->response()->v2_output_buffering === true
|| ($this->requestHandled === false && empty(getenv('PHPUNIT_TEST')))
) {
$this->response()->send(); $this->response()->send();
} }
} }

Loading…
Cancel
Save