1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +02:00

rename params to match_info

This commit is contained in:
Nikolay Kim
2017-10-16 10:20:16 -07:00
parent 02033724d8
commit 95fa70d19e
4 changed files with 8 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ impl Router {
pub(crate) fn call(&self, req: HttpRequest, payload: Payload) -> Task
{
if let Ok(h) = self.resources.recognize(req.path()) {
h.handler.handle(req.with_params(h.params), payload, Rc::new(()))
h.handler.handle(req.with_match_info(h.params), payload, Rc::new(()))
} else {
for (prefix, app) in &self.apps {
if req.path().starts_with(prefix) {