diff --git a/src/Symfony/Component/HttpClient/RetryableHttpClient.php b/src/Symfony/Component/HttpClient/RetryableHttpClient.php index afab2f8d0388b..a0c099a9adddf 100644 --- a/src/Symfony/Component/HttpClient/RetryableHttpClient.php +++ b/src/Symfony/Component/HttpClient/RetryableHttpClient.php @@ -117,7 +117,9 @@ public function request(string $method, string $url, array $options = []): Respo if (false === $shouldRetry) { $context->passthru(); - yield $firstChunk; + if (null !== $firstChunk) { + yield $firstChunk; + } yield $context->createChunk($content); $content = '';