Skip to content

Commit

Permalink
Change capitalized Location header to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvanderhammen-pon committed Dec 8, 2022
1 parent a2776ae commit 11db4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/AuthenticationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected function getAuthorizationCode(string $username, string $password): str
$this->lastResponseBody = $responseBody;
$this->lastResponseHeaders = $response->getHeaders();

$locationHeader = $response->getHeaders()['Location'][0];
$locationHeader = $response->getHeaders()['location'][0];

try {
return $this->parseAuthorizationCodeFromUrl($locationHeader);
Expand Down Expand Up @@ -357,4 +357,4 @@ protected function makeHttpRequest($request, $options = []): ResponseInterface
$client = new HttpClient();
return $client->get($request, $options);
}
}
}

0 comments on commit 11db4bc

Please sign in to comment.