[HttpClient] fix dealing with informational response
This commit is contained in:
parent
fb90fb3bb7
commit
9068aa48e2
@ -200,7 +200,7 @@ final class AmpResponse implements ResponseInterface
|
|||||||
|
|
||||||
$options = null;
|
$options = null;
|
||||||
|
|
||||||
$activity[$id] = [new FirstChunk()];
|
$activity[$id][] = new FirstChunk();
|
||||||
|
|
||||||
if ('HEAD' === $response->getRequest()->getMethod() || \in_array($info['http_code'], [204, 304], true)) {
|
if ('HEAD' === $response->getRequest()->getMethod() || \in_array($info['http_code'], [204, 304], true)) {
|
||||||
$activity[$id][] = null;
|
$activity[$id][] = null;
|
||||||
|
@ -25,13 +25,4 @@ class AmpHttpClientTest extends HttpClientTestCase
|
|||||||
{
|
{
|
||||||
$this->markTestSkipped('A real proxy server would be needed.');
|
$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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user