8000 [HttpClient] fix dealing with informational response · symfony/symfony@9068aa4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9068aa4

Browse files
[HttpClient] fix dealing with informational response
1 parent fb90fb3 commit 9068aa4

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private static function generateResponse(Request $request, AmpClientState $multi
200200

201201
$options = null;
202202

203-
$activity[$id] = [new FirstChunk()];
203+
$activity[$id][] = new FirstChunk();
204204

205205
if ('HEAD' === $response->getRequest()->getMethod() || \in_array($info['http_code'], [204, 304], true)) {
206206
$activity[$id][] = null;

src/Symfony/Component/HttpClient/Tests/AmpHttpClientTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,4 @@ public function testProxy()
2525
{
2626
$this->markTestSkipped('A real proxy server would be needed.');
2727
}
28-
29-
public function testInformationalResponseStream()
30-
{
31-
if (getenv('TRAVIS_PULL_REQUEST')) {
32-
$this->markTestIncomplete('This test always fails on Travis.');
33-
}
34-
35-
parent::testInformationalResponseStream();
36-
}
3728
}

0 commit comments

Comments
 (0)
0