Skip to content

Commit

Permalink
ENGCOM-3479: [Backport] Allow to read HTTP/2 response header. #19239
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Nov 29, 2018
2 parents d6b5325 + 46c088c commit c36df15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/HTTP/Client/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ protected function parseHeaders($ch, $data)
{
if ($this->_headerCount == 0) {
$line = explode(" ", trim($data), 3);
if (count($line) != 3) {
if (count($line) < 2) {
$this->doError("Invalid response line returned from server: " . $data);
}
$this->_responseStatus = (int)$line[1];
Expand Down

0 comments on commit c36df15

Please sign in to comment.