Skip to content

Commit 46c088c

Browse files
ENGCOM-3479: [Backport] Allow to read HTTP/2 response header. #19239
- Merge Pull Request #19239 from gelanivishal/magento2:2.2-develop-PR-port-19143 - Merged commits: 1. ebe4af7
2 parents e6fee77 + ebe4af7 commit 46c088c

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)