[HttpClient] fix dealing with informational response

This commit is contained in:
Nicolas Grekas 2020-05-08 22:52:14 +02:00
parent fb90fb3bb7
commit 9068aa48e2
2 changed files with 1 additions and 10 deletions

View File

@ -200,7 +200,7 @@ final class AmpResponse implements ResponseInterface
$options = null;
$activity[$id] = [new FirstChunk()];
$activity[$id][] = new FirstChunk();
if ('HEAD' === $response->getRequest()->getMethod() || \in_array($info['http_code'], [204, 304], true)) {
$activity[$id][] = null;

View File

@ -25,13 +25,4 @@ class AmpHttpClientTest extends HttpClientTestCase
{
$this->markTestSkipped('A real proxy server would be needed.');
}
public function testInformationalResponseStream()
{
if (getenv('TRAVIS_PULL_REQUEST')) {
$this->markTestIncomplete('This test always fails on Travis.');
}
parent::testInformationalResponseStream();
}
}