diff --git a/actix-router/src/resource.rs b/actix-router/src/resource.rs index 038cc57d..9a1f33f4 100644 --- a/actix-router/src/resource.rs +++ b/actix-router/src/resource.rs @@ -252,7 +252,7 @@ impl ResourceDef { match self.tp { PatternType::Static(ref s) => { if s == path.path() { - path.skip(path.len() as u16); + path.skip(path.path().len() as u16); true } else { false @@ -354,7 +354,7 @@ impl ResourceDef { PatternType::Static(ref s) => { if s == res.resource_path().path() && check(res, user_data) { let path = res.resource_path(); - path.skip(path.len() as u16); + path.skip(path.path().len() as u16); true } else { false