#7581: Middleware accessing HttpResponse.content breaks streaming HttpResponse
objects.
-------------------------------------+-------------------------------------
               Reporter:  mrmachine  |          Owner:  ccahoon
                   Type:  New        |         Status:  new
  feature                            |      Component:  Core (Other)
              Milestone:             |       Severity:  Normal
                Version:  SVN        |       Keywords:  stream HttpResponse
             Resolution:             |  Content-Length
           Triage Stage:  Design     |      Has patch:  1
  decision needed                    |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by mrmachine):

 * ui_ux:   => 0
 * easy:   => 0


Comment:

 Just updated the patch to apply cleanly against trunk again. Removed (now)
 redundant changes to CSRF middleware (it no longer breaks streaming). Also
 made `_get_content_generator()` consistent with `_get_content()` in that
 it now calls `smart_str()` on each chunk. This was causing me problems
 when passing a generator that yielded unicode strings instead of bytecode
 strings, which was breaking `compress_sequence()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7581#comment:24>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to