fix some owned args
This commit is contained in:
parent
2e821108c9
commit
b1ef8c1079
3 changed files with 6 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ use std::net::SocketAddr;
|
|||
////////////////////////////////////////////////////
|
||||
// Functions of utils for request messages
|
||||
|
||||
pub(super) fn log_request_msg<B>(req: &Request<B>, client_addr: SocketAddr) -> String {
|
||||
pub(super) fn log_request_msg<B>(req: &Request<B>, client_addr: &SocketAddr) -> String {
|
||||
let server_name = req.headers().get(header::HOST).map_or_else(
|
||||
|| {
|
||||
req
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue