diff --git a/bottle.py b/bottle.py index 96ca3e4a6..bcfc5e62b 100644 --- a/bottle.py +++ b/bottle.py @@ -440,7 +440,7 @@ def match(self, environ): nocheck = set(methods) for method in set(self.static) - nocheck: if path in self.static[method]: - allowed.add(verb) + allowed.add(method) for method in set(self.dyna_regexes) - allowed - nocheck: for combined, rules in self.dyna_regexes[method]: match = combined(path)