https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ba6b9
)
Revert "Fix redirect logging"
author
Philipp
<admin@philipp.info>
Sun, 11 Oct 2020 21:25:23 +0000
(23:25 +0200)
committer
Philipp
<admin@philipp.info>
Sun, 11 Oct 2020 21:25:23 +0000
(23:25 +0200)
This reverts commit
b8314f0c
src/Network/HTTPRequest.php
patch
|
blob
|
history
diff --git
a/src/Network/HTTPRequest.php
b/src/Network/HTTPRequest.php
index
d85932e
..
1f6b262
100644
(file)
--- a/
src/Network/HTTPRequest.php
+++ b/
src/Network/HTTPRequest.php
@@
-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) {