Skip to content

Commit

Permalink
CurlLoader: case-insensitive Cookie header
Browse files Browse the repository at this point in the history
This fixes problems with vSphere 7.0

fixes #33
  • Loading branch information
Thomas-Gelf committed Aug 12, 2020
1 parent ffe4fa3 commit e980362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Vsphere/CurlLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function processHeaderLine($curl, $header)
return $len;
}

if ($header[0] === 'Set-Cookie') {
if (\strtolower($header[0]) === 'set-cookie') {
$cookie = trim($header[1]);
if ($this->persistCookies) {
file_put_contents($this->cookieFile, $cookie);
Expand Down

0 comments on commit e980362

Please sign in to comment.