Commits

Alexander Shorin committed 60cef8e

Handle only URI path parts, not any others.

Comments (0)

Files changed (1)

     def match_path(self, req):
         kwargs = {}
         path = self.path.strip('/').split('/')
-        for rsection, msection in izip_longest(req['requested_path'], path):
+        for rsection, msection in izip_longest(req['path'], path):
             if msection is None:
                 raise PathNotFound('missed')
             if msection.startswith(':'):
             return self
         kwargs = {'req': req}
         target_path = self.path.strip('/').split('/')
-        for rpath, mpath in izip_longest(req['requested_path'], target_path):
+        for rpath, mpath in izip_longest(req['path'], target_path):
             if mpath is None:
                 return
             if mpath.startswith(':'):