We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c1835 commit bfe4671Copy full SHA for bfe4671
src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php
@@ -167,8 +167,11 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
167
return '';
168
}, 1);
169
170
- $symfonyResponse->sendContent();
171
- ob_end_clean();
+ try {
+ $symfonyResponse->sendContent();
172
+ } finally {
173
+ ob_end_clean();
174
+ }
175
} else {
176
$stream->write($symfonyResponse->getContent());
177
}
src/Symfony/Component/HttpKernel/HttpKernelBrowser.php
@@ -183,6 +183,8 @@ protected function filterResponse(object $response): DomResponse
183
$content = '';
184
ob_start(static function ($chunk) use (&$content) {
185
$content .= $chunk;
186
+
187
+ return '';
188
});
189
190
try {
0 commit comments