diff options
author | Marcel Hellkamp <marc@gsites.de> | 2017-08-16 09:45:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-16 09:45:42 +0200 |
commit | 3b09891fc516e9d1f9fe578d7e06208dc688e378 (patch) | |
tree | ab03f4deffb56c46a1ec6debf52452199344173d | |
parent | 13eb8394ca8f5ee2e113a6a0f701aa976f69f433 (diff) | |
parent | f27a9a3be9b3c031eac44b4a99f44d58557175f3 (diff) | |
download | bottle-3b09891fc516e9d1f9fe578d7e06208dc688e378.tar.gz |
Merge pull request #668 from rgacogne/master
Fix the Allow: header value in 405 "Method not allowed." response.
-rwxr-xr-x | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -494,7 +494,7 @@ class Router(object): 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) |