Skip to content

Commit 5c2e563

Browse files
ENGCOM-3425: Allow to read HTTP/2 response header in curl client. #19143
- Merge Pull Request #19143 from vovayatsyuk/magento2:fix-http2-curl-client - Merged commits: 1. e827b32
2 parents 072ef37 + e827b32 commit 5c2e563

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)