src/server/rest.rs: correctly insert NoLogExtension()
This commit is contained in:
parent
591f570b22
commit
1cb99c234e
|
@ -181,16 +181,17 @@ 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 {
|
||||
Either::B(resp)
|
||||
};
|
||||
|
||||
|
||||
return Box::new(resp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue