mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Use last URL from redirect chain
This commit is contained in:
parent
16f5d2033d
commit
1049ac4779
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) ?? [];
|
$headersRedirect = $response->getHeader(RedirectMiddleware::HISTORY_HEADER) ?? [];
|
||||||
|
|
||||||
if (count($headersRedirect) > 0) {
|
if (count($headersRedirect) > 0) {
|
||||||
$this->redirectUrl = $headersRedirect[0];
|
$this->redirectUrl = end($headersRedirect);
|
||||||
$this->isRedirectUrl = true;
|
$this->isRedirectUrl = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue