﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9659	No output from `wsgi.file_wrapper`	Jonas Borgström	Armin Ronacher	"The development server exposes the `wsgi.file_wrapper` extension but a typo in `ServerHandler.finish_response`stops any file contents from making it to the browser.
{{{
#!patch
--- django/core/servers/basehttp.py	(revision 9509)
+++ django/core/servers/basehttp.py	(working copy)
@@ -313,7 +313,7 @@
         in the event loop to iterate over the data, and to call
         'self.close()' once the response is finished.
         """"""
-        if not self.result_is_file() and not self.sendfile():
+        if not self.result_is_file() or not self.sendfile():
             for data in self.result:
                 self.write(data)
             self.finish_content()
}}}

"		closed	HTTP handling	1.0		fixed		Jonas Borgström	Ready for checkin	1	0	0	0	0	0
