Skip to content
Browse files

Merge pull request #81 from dhilipsiva/patch-1

Extended @removeslash also to CRUD #70
  • Loading branch information...
2 parents 05ee402 + f9c5f19 commit fff4fa59288f515cd7805096ece7e511fd6a1678 @fiorix committed Dec 5, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 README.rst
  2. +1 −1 cyclone/web.py
View
4 README.rst
@@ -688,3 +688,7 @@ Thanks to (in no particular order):
- `Gautam Jeyaraman <https://github.com/gautamjeyaraman>`_
- Minor code fixes and patches
+
+- `DhilipSiva <https://github.com/dhilipsiva>`_
+
+ - Minor patches
View
2 cyclone/web.py
@@ -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 fff4fa5

Please sign in to comment.
Something went wrong with that request. Please try again.