Skip to content

Commit b720e68

Browse files
authored
ENGCOM-3425: Allow to read HTTP/2 response header in curl client. #19143
2 parents 5f976fa + 5c2e563 commit b720e68

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
@@ -438,7 +438,7 @@ protected function parseHeaders($ch, $data)
438438
{
439439
if ($this->_headerCount == 0) {
440440
$line = explode(" ", trim($data), 3);
441-
if (count($line) != 3) {
441+
if (count($line) < 2) {
442442
$this->doError("Invalid response line returned from server: " . $data);
443443
}
444444
$this->_responseStatus = (int)$line[1];

0 commit comments

Comments
 (0)