Skip to content

Commit ba14c31

Browse files
Merge branch '7.3' into 7.4
* 7.3: fix merge
2 parents 1f92ca7 + 18545c8 commit ba14c31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Factory/PsrHttpFactory.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,11 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
167167
return '';
168168
}, 1);
169169

170-
$symfonyResponse->sendContent();
171-
ob_end_clean();
170+
try {
171+
$symfonyResponse->sendContent();
172+
} finally {
173+
ob_end_clean();
174+
}
172175
} else {
173176
$stream->write($symfonyResponse->getContent());
174177
}

0 commit comments

Comments
 (0)