Skip to content

Commit

Permalink
Get Location header with getHeader function
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvanderhammen-devnl authored Apr 17, 2023
1 parent 11db4bc commit d61a02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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->getHeader('location')[0];

try {
return $this->parseAuthorizationCodeFromUrl($locationHeader);
Expand Down

0 comments on commit d61a02a

Please sign in to comment.