mirror of https://github.com/fafhrd91/actix-net
fix
This commit is contained in:
parent
c2f3528f82
commit
0d5b80dde4
|
@ -252,7 +252,7 @@ impl ResourceDef {
|
||||||
match self.tp {
|
match self.tp {
|
||||||
PatternType::Static(ref s) => {
|
PatternType::Static(ref s) => {
|
||||||
if s == path.path() {
|
if s == path.path() {
|
||||||
path.skip(path.len() as u16);
|
path.skip(path.path().len() as u16);
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
@ -354,7 +354,7 @@ impl ResourceDef {
|
||||||
PatternType::Static(ref s) => {
|
PatternType::Static(ref s) => {
|
||||||
if s == res.resource_path().path() && check(res, user_data) {
|
if s == res.resource_path().path() && check(res, user_data) {
|
||||||
let path = res.resource_path();
|
let path = res.resource_path();
|
||||||
path.skip(path.len() as u16);
|
path.skip(path.path().len() as u16);
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue