#30565: HttpResponseBase.close not called when using FileResponse / WSGI "file
wrapper" object
-------------------------------------+-------------------------------------
Reporter: Chris Jerdonek | Owner: nobody
Type: Bug | Status: new
Component: HTTP handling | Version: master
Severity: Normal | Resolution:
Keywords: HttpResponse, | Triage Stage: Accepted
streaming, StreamingHttpResponse |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Johannes Hoppe):
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
I see, thanks for the clarification. I agree that either the documentation
is wrong or the behavior is inconsistent.
I suggest fixing the behavior as well. So please go ahead and wrap the
file object. That seems to be in full agreement with PEP333.
If you don't care to implement a patch, let me know. I am happy to write
one myself.
Oh, and fantastic catch. It always amazes me, what bugs people dig up.
--
Ticket URL: <https://code.djangoproject.com/ticket/30565#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.a5933763df9904a25de022c017da6567%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.