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)
|
.request(request)
|
||||||
.map_err(|e| Error::from(e))
|
.map_err(|e| Error::from(e))
|
||||||
.map(|mut resp| {
|
.map(|mut resp| {
|
||||||
resp.extensions_mut().insert(NoLogExtension);
|
resp.extensions_mut().insert(NoLogExtension());
|
||||||
resp
|
resp
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
let resp = if info.reload_timezone {
|
let resp = if info.reload_timezone {
|
||||||
Either::A(resp.then(|resp| {unsafe { tzset() }; resp }))
|
Either::A(resp.then(|resp| {unsafe { tzset() }; resp }))
|
||||||
} else {
|
} else {
|
||||||
Either::B(resp)
|
Either::B(resp)
|
||||||
};
|
};
|
||||||
|
|
||||||
return Box::new(resp);
|
return Box::new(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue