Fixed #30565 -- Closed HttpResponse when wsgi.file_wrapper closes file-like object.

This commit is contained in:
Chris Jerdonek 2019-06-18 01:40:44 -07:00 committed by Carlton Gibson
parent 533311782f
commit cce47ff65a
3 changed files with 79 additions and 1 deletions

View file

@ -861,7 +861,8 @@ Methods
.. method:: HttpResponse.close()
This method is called at the end of the request directly by the WSGI
server.
server, or when the WSGI server closes the file-like object, if
`wsgi.file_wrapper`_ is used for the request.
.. method:: HttpResponse.write(content)