mirror of https://github.com/fafhrd91/actix-net
Merge branch 'master' into fix-dyn-prefix-match
This commit is contained in:
commit
4f88775ff1
|
@ -955,7 +955,9 @@ impl ResourceDef {
|
||||||
}
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
})
|
})
|
||||||
.expect("malformed dynamic segment");
|
.unwrap_or_else(|| {
|
||||||
|
panic!(r#"path "{}" contains malformed dynamic segment"#, pattern)
|
||||||
|
});
|
||||||
|
|
||||||
let (mut param, mut unprocessed) = pattern.split_at(close_idx + 1);
|
let (mut param, mut unprocessed) = pattern.split_at(close_idx + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue