Fix setting post/files on the underlying request

This commit is contained in:
Ryan P Kilby 2018-01-25 06:40:31 -05:00
parent 5de278cb31
commit c25716a493

View File

@ -278,10 +278,11 @@ class Request(object):
else:
self._full_data = self._data
# copy data & files refs to the underlying request so that closable
# objects are handled appropriately.
self._request._post = self.POST
self._request._files = self.FILES
# if a form media type, copy data & files refs to the underlying
# http request so that closable objects are handled appropriately.
if is_form_media_type(self.content_type):
self._request._post = self.POST
self._request._files = self.FILES
def _load_stream(self):
"""