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(), req.version(),
client_addr, client_addr,
req.method(), req.method(),
req req.headers().get("host").map_or_else(
.headers() || req.uri().host().unwrap_or("<none>"),
.get("host") |h| h.to_str().unwrap()
.map_or_else(|| "<none>", |h| h.to_str().unwrap()), ),
req.uri(), req.uri(),
req req
.headers() .headers()