diff options
author | Remi Gacogne <rgacogne[at]nuagelabs[dot]fr> | 2014-10-31 17:27:24 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2020-06-02 15:56:16 +0200 |
commit | 2d6acef676d35611dc58ca9c3bac51789adbcce8 (patch) | |
tree | affc030398cd5b3e4c900a9b7321c1881c5b2d6a | |
parent | 44b9cf888c8481e0291b5343518f39713be04736 (diff) | |
download | bottle-2d6acef676d35611dc58ca9c3bac51789adbcce8.tar.gz |
Fix the Allow: header value in 405 "Method not allowed." response.
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |