From 0d5b80dde433522d3241a213f79bd3a3f808ddfd Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Mon, 28 Jun 2021 00:39:21 +0300 Subject: [PATCH] fix --- actix-router/src/resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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