fix log message

This commit is contained in:
Jun Kurihara 2022-07-06 21:23:31 +09:00
commit 9d6fdb3e98
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03

View file

@ -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()