Copy accepted_renderer and accepted_media_type when cloing a request. Closes #1950.

This commit is contained in:
Tom Christie 2014-11-05 11:08:32 +00:00
parent 571440e143
commit 2daf085100

View File

@ -103,6 +103,10 @@ def clone_request(request, method):
ret._auth = request._auth
if hasattr(request, '_authenticator'):
ret._authenticator = request._authenticator
if hasattr(request, 'accepted_renderer'):
ret.accepted_renderer = request.accepted_renderer
if hasattr(request, 'accepted_media_type'):
ret.accepted_media_type = request.accepted_media_type
return ret