Use enhanced request when cloning requests for checking permissions on other methods. Fixes #2455

This commit is contained in:
Brandon Cazander 2015-01-24 01:44:40 -08:00
parent 0ee2edc0a1
commit ed04725822

View File

@ -86,7 +86,7 @@ def clone_request(request, method):
Internal helper method to clone a request, replacing with a different
HTTP method. Used for checking permissions against other methods.
"""
ret = Request(request=request._request,
ret = Request(request=request,
parsers=request.parsers,
authenticators=request.authenticators,
negotiator=request.negotiator,