summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2017-08-16 09:45:42 +0200
committerGitHub <noreply@github.com>2017-08-16 09:45:42 +0200
commit3b09891fc516e9d1f9fe578d7e06208dc688e378 (patch)
treeab03f4deffb56c46a1ec6debf52452199344173d
parent13eb8394ca8f5ee2e113a6a0f701aa976f69f433 (diff)
parentf27a9a3be9b3c031eac44b4a99f44d58557175f3 (diff)
downloadbottle-3b09891fc516e9d1f9fe578d7e06208dc688e378.tar.gz
Merge pull request #668 from rgacogne/master
Fix the Allow: header value in 405 "Method not allowed." response.
-rwxr-xr-xbottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 4585866..bda20e6 100755
--- a/bottle.py
+++ b/bottle.py
@@ -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)