Permalink
Browse files

Extended @removeslash also to CRUD #70

  • Loading branch information...
1 parent 05ee402 commit 90e422c3d822bf52f44afaf70ed6ff6b332353cc @dhilipsiva dhilipsiva committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cyclone/web.py
View
@@ -1087,7 +1087,7 @@ def removeslash(method):
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if self.request.path.endswith("/"):
- if self.request.method in ("GET", "HEAD"):
+ if self.request.method in ("GET", "HEAD", "POST", "PUT", "DELETE"):
uri = self.request.path.rstrip("/")
if uri: # don't try to redirect '/' to ''
if self.request.query:

0 comments on commit 90e422c

Please sign in to comment.