1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 17:46:38 +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

@@ -294,7 +294,8 @@ impl<S: 'static> Handler for InnerApplication<S> {
fn handle(&self, req: HttpRequest, payload: Payload) -> Task {
if let Ok(h) = self.router.recognize(req.path()) {
h.handler.handle(req.with_params(h.params), payload, Rc::clone(&self.state))
h.handler.handle(
req.with_match_info(h.params), payload, Rc::clone(&self.state))
} else {
for (prefix, handler) in &self.handlers {
if req.path().starts_with(prefix) {