fix log message
This commit is contained in:
parent
1c4e450f1d
commit
9d6fdb3e98
1 changed files with 4 additions and 4 deletions
|
|
@ -36,10 +36,10 @@ where
|
|||
req.version(),
|
||||
client_addr,
|
||||
req.method(),
|
||||
req
|
||||
.headers()
|
||||
.get("host")
|
||||
.map_or_else(|| "<none>", |h| h.to_str().unwrap()),
|
||||
req.headers().get("host").map_or_else(
|
||||
|| req.uri().host().unwrap_or("<none>"),
|
||||
|h| h.to_str().unwrap()
|
||||
),
|
||||
req.uri(),
|
||||
req
|
||||
.headers()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue