8000 Fix content not reported in TracableResponse decorated by AsyncResponse · symfony/symfony@03d14f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03d14f1

Browse files
committed
Fix content not reported in TracableResponse decorated by AsyncResponse
1 parent fdf9a43 commit 03d14f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/HttpClient/Response/TraceableResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public static function stream(HttpClientInterface $client, iterable $responses,
132132
}
133133

134134
foreach ($client->stream($wrappedResponses, $timeout) as $r => $chunk) {
135+
if (null === $chunk->getError()) {
136+
$traceableMap[$r]->content .= $chunk->getContent();
137+
}
135138
yield $traceableMap[$r] => $chunk;
136139
}
137140
}

0 commit comments

Comments
 (0)
0