Skip to content

Commit

Permalink
Fix the Allow: header value in 405 "Method not allowed." response.
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi Gacogne authored and defnull committed Jun 2, 2020
1 parent 44b9cf8 commit 2d6acef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d6acef

Please sign in to comment.