Skip to content

Commit 18545c8

Browse files
fix merge
1 parent 03f2f72 commit 18545c8

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)