Skip to content

Commit 0de8afb

Browse files
Merge branch '6.1' into 6.2
* 6.1: [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 2c034cf + fa7b099 commit 0de8afb

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
@@ -382,6 +382,7 @@ public function send(): static
382382
litespeed_finish_request();
383383
} elseif (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
384384
static::closeOutputBuffers(0, true);
385+
flush();
385386
}
386387

387388
return $this;
@@ -1265,7 +1266,6 @@ public static function closeOutputBuffers(int $targetLevel, bool $flush): void
12651266
while ($level-- > $targetLevel && ($s = $status[$level]) && (!isset($s['del']) ? !isset($s['flags']) || ($s['flags'] & $flags) === $flags : $s['del'])) {
12661267
if ($flush) {
12671268
ob_end_flush();
1268-
flush();
12691269
} else {
12701270
ob_end_clean();
12711271
}

0 commit comments

Comments
 (0)