Skip to content

Commit 808d1ee

Browse files
tmotylsreichel
andauthored
Allow HTTP/1.0
Co-authored-by: sv3n <github-sr@hotmail.com>
1 parent b3d5e1b commit 808d1ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Mage/HTTP/Client/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ protected function parseHeaders($ch, $data): int
464464
*/
465465
protected function validateHttpVersion(array $line)
466466
{
467-
if ($line[0] === 'HTTP/1.1') {
467+
if ($line[0] === 'HTTP/1.0' || $line[0] === 'HTTP/1.1') {
468468
if (count($line) !== 3) {
469469
$this->doError('Invalid response line returned from server: ' . implode(' ', $line));
470470
}

0 commit comments

Comments
 (0)