diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/route.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/route.rs b/src/route.rs index 7237fec..a983374 100644 --- a/src/route.rs +++ b/src/route.rs @@ -91,6 +91,14 @@ pub fn cache(context: &RouteContext, response: &str) { ); } - trace!("recache for {}", context.url.path()); + trace!("recache for {}", { + let path = context.url.path(); + + if path.is_empty() { + "/" + } else { + path + } + }); } } |