summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Gacogne <rgacogne[at]nuagelabs[dot]fr>2014-10-31 17:27:24 +0100
committerMarcel Hellkamp <marc@gsites.de>2020-06-02 15:56:16 +0200
commit2d6acef676d35611dc58ca9c3bac51789adbcce8 (patch)
treeaffc030398cd5b3e4c900a9b7321c1881c5b2d6a
parent44b9cf888c8481e0291b5343518f39713be04736 (diff)
downloadbottle-2d6acef676d35611dc58ca9c3bac51789adbcce8.tar.gz
Fix the Allow: header value in 405 "Method not allowed." response.
-rw-r--r--bottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 96ca3e4..bcfc5e6 100644
--- a/bottle.py
+++ b/bottle.py
@@ -440,7 +440,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)