diff --git a/picoweb/__init__.py b/picoweb/__init__.py index b771121..623f0d8 100644 --- a/picoweb/__init__.py +++ b/picoweb/__init__.py @@ -167,8 +167,9 @@ def _handle(self, reader, writer): extra = {} if len(e) > 2: extra = e[2] - - if path == pattern: + _methods = extra.get("methods",[method]) + if (path == pattern) and \ + (method in _methods): found = True break elif not isinstance(pattern, str):