Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #20 from hadrien/feature/permit-method-override-fo…
Browse files Browse the repository at this point in the history
…r-get

Permit method override for GET
  • Loading branch information
hadrien committed Nov 3, 2015
2 parents 17fad92 + 81a0e56 commit d44c910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,8 @@ Changelog
Development
-----------

- Permit method override for GET.

0.8.7 (2015-08-05)
------------------

Expand Down
2 changes: 1 addition & 1 deletion royal/__init__.py
Expand Up @@ -62,7 +62,7 @@ def text(self):


def override_request_method(event):
methods = ['PUT', 'DELETE']
methods = ['GET', 'PUT', 'DELETE']
override = (
event.request.headers.get('X-HTTP-Method-Override') or
event.request.POST.get('_method', '').upper()
Expand Down

0 comments on commit d44c910

Please sign in to comment.