diff --git a/pycnic/__init__.py b/pycnic/__init__.py index a73339b..00ec2dc 100644 --- a/pycnic/__init__.py +++ b/pycnic/__init__.py @@ -1 +1 @@ -__version__ = "0.0.8" +__version__ = "0.0.9" diff --git a/pycnic/core.py b/pycnic/core.py index 5fafdac..86572a5 100755 --- a/pycnic/core.py +++ b/pycnic/core.py @@ -240,12 +240,12 @@ def delegate(self): # Set defaults for handler handler.request = self.request handler.response = self.response - - if hasattr(handler, 'before'): - handler.before() m = re.match('^' + pattern + '$', path) if m: + if hasattr(handler, 'before'): + handler.before() + args = m.groups() funcname = method.lower() try: