mirror of
https://github.com/friendica/friendica
synced 2024-12-23 14:00:15 +00:00
Fix redirect logging
This commit is contained in:
parent
40b11442c2
commit
b8314f0c30
1 changed files with 4 additions and 2 deletions
|
@ -170,12 +170,14 @@ class HTTPRequest implements IHTTPRequest
|
|||
$curlOptions[CURLOPT_BINARYTRANSFER] = 1;
|
||||
}
|
||||
|
||||
$logger = $this->logger;
|
||||
|
||||
$onRedirect = function(
|
||||
RequestInterface $request,
|
||||
ResponseInterface $response,
|
||||
UriInterface $uri
|
||||
) {
|
||||
$this->logger->notice('Curl redirect.', ['url' => $request->getUri(), 'to' => $uri]);
|
||||
) use ($logger) {
|
||||
$logger->notice('Curl redirect.', ['url' => $request->getUri(), 'to' => $uri]);
|
||||
};
|
||||
|
||||
$onHeaders = function (ResponseInterface $response) use ($opts) {
|
||||
|
|
Loading…
Reference in a new issue