Skip to content

Commit c36df15

Browse files
authored
ENGCOM-3479: [Backport] Allow to read HTTP/2 response header. #19239
2 parents d6b5325 + 46c088c commit c36df15

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/HTTP/Client

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/HTTP/Client/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ protected function parseHeaders($ch, $data)
432432
{
433433
if ($this->_headerCount == 0) {
434434
$line = explode(" ", trim($data), 3);
435-
if (count($line) != 3) {
435+
if (count($line) < 2) {
436436
$this->doError("Invalid response line returned from server: " . $data);
437437
}
438438
$this->_responseStatus = (int)$line[1];

0 commit comments

Comments
 (0)