src/server/rest.rs: correctly insert NoLogExtension()

This commit is contained in:
Dietmar Maurer 2019-02-18 06:54:12 +01:00
parent 591f570b22
commit 1cb99c234e
1 changed files with 3 additions and 2 deletions

View File

@ -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 {