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

Commit

Permalink
Permit method override for GET
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrien committed Nov 3, 2015
1 parent 17fad92 commit 81a0e56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 81a0e56

Please sign in to comment.