From a31bdc23491604f881a2ff0cc23420eeeecb5e45 Mon Sep 17 00:00:00 2001 From: Ludovic Gasc Date: Thu, 25 Jul 2019 19:22:07 +0200 Subject: [PATCH] HTTP text status is optional in RFC 7230 --- lib/internal/Magento/Framework/HTTP/Client/Curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/Magento/Framework/HTTP/Client/Curl.php b/lib/internal/Magento/Framework/HTTP/Client/Curl.php index 8b90897481259..66f56cd9335eb 100644 --- a/lib/internal/Magento/Framework/HTTP/Client/Curl.php +++ b/lib/internal/Magento/Framework/HTTP/Client/Curl.php @@ -439,7 +439,7 @@ protected function parseHeaders($ch, $data) { if ($this->_headerCount == 0) { $line = explode(" ", trim($data), 3); - if (count($line) < 2) { + if (count($line) < 1) { $this->doError("Invalid response line returned from server: " . $data); } $this->_responseStatus = (int)$line[1];