Set data & file refs on underlying Django request

This commit is contained in:
Ryan P Kilby 2017-07-07 11:31:47 -04:00
parent d507a6943a
commit 4964ec8b37

View File

@ -250,6 +250,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._data
self._request._files = self._files
def _load_stream(self):
"""
Return the content body of the request, as a stream.