#9659 closed (fixed)
No output from `wsgi.file_wrapper`
Reported by: | Jonas Borgström | Owned by: | Armin Ronacher |
---|---|---|---|
Component: | HTTP handling | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Jonas Borgström | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
-
django/core/servers/basehttp.py
313 313 in the event loop to iterate over the data, and to call 314 314 'self.close()' once the response is finished. 315 315 """ 316 if not self.result_is_file() andnot self.sendfile():316 if not self.result_is_file() or not self.sendfile(): 317 317 for data in self.result: 318 318 self.write(data) 319 319 self.finish_content()
Attachments (2)
Change History (11)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 16 years ago
Component: | Uncategorized → HTTP handling |
---|
comment:4 by , 16 years ago
Owner: | changed from | to
---|
by , 16 years ago
Attachment: | 9659-fixed-filewrapper.patch added |
---|
by , 16 years ago
Attachment: | 9659-fixed-filewrapper.2.patch added |
---|
comment:6 by , 16 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
The latter has a better name for the tests. (basehttp_server)
comment:7 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Ticket #7894 does this change, too.