Skip to content

Commit fa7b099

Browse files
Merge branch '6.0' into 6.1
* 6.0: [HttpKernel] lock when writting profiles Using identical comparison for path validation [Mime] Fix email rendering when having inlined parts that are not related to the content fix typo [HttpFoundation] move flushing outside of Response::closeOutputBuffers [FrameworkBundle] Do not throw when describing a factory definition Fix checking result of DateTime::getLastErrors [WebProfilerBundle] Fix profile search bar link query params
2 parents 18e0f10 + 19c1ee0 commit fa7b099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ public function send(): static
380380
litespeed_finish_request();
381381
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
382382
static::closeOutputBuffers(0, true);
383+
flush();
383384
}
384385

385386
return $this;
@@ -1263,7 +1264,6 @@ public static function closeOutputBuffers(int $targetLevel, bool $flush): void
12631264
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
12641265
if ($flush) {
12651266
ob_end_flush();
1266-
flush();
12671267
} else {
12681268
ob_end_clean();
12691269
}

0 commit comments

Comments
 (0)