src/server/rest.rs: correctly insert NoLogExtension()
This commit is contained in:
parent
591f570b22
commit
1cb99c234e
|
@ -181,10 +181,11 @@ fn proxy_protected_request(
|
|||
.request(request)
|
||||
.map_err(|e| Error::from(e))
|
||||
.map(|mut resp| {
|
||||
resp.extensions_mut().insert(NoLogExtension);
|
||||
resp.extensions_mut().insert(NoLogExtension());
|
||||
resp
|
||||
});
|
||||
|
||||
|
||||
let resp = if info.reload_timezone {
|
||||
Either::A(resp.then(|resp| {unsafe { tzset() }; resp }))
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue