mirror of
https://github.com/friendica/friendica
synced 2024-12-22 17:20:16 +00:00
Merge pull request #14265 from mexon/mat/redirect-url
Use last URL from redirect chain
This commit is contained in:
commit
d0a66d4f7b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class GuzzleResponse extends Response implements ICanHandleHttpResponses, Respon
|
|||
$headersRedirect = $response->getHeader(RedirectMiddleware::HISTORY_HEADER) ?? [];
|
||||
|
||||
if (count($headersRedirect) > 0) {
|
||||
$this->redirectUrl = $headersRedirect[0];
|
||||
$this->redirectUrl = end($headersRedirect);
|
||||
$this->isRedirectUrl = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue