Revert "Fix redirect logging"

This reverts commit b8314f0c
This commit is contained in:
Philipp Holzer 2020-10-11 23:25:23 +02:00
parent 36ba6b9f2d
commit 88c95a352b
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -179,14 +179,12 @@ class HTTPRequest implements IHTTPRequest
$curlOptions[CURLOPT_BINARYTRANSFER] = 1;
}
$logger = $this->logger;
$onRedirect = function(
RequestInterface $request,
ResponseInterface $response,
UriInterface $uri
) use ($logger) {
$logger->notice('Curl redirect.', ['url' => $request->getUri(), 'to' => $uri]);
) {
$this->logger->notice('Curl redirect.', ['url' => $request->getUri(), 'to' => $uri]);
};
$onHeaders = function (ResponseInterface $response) use ($opts) {