#24158: Static serve failure since 1.4.18
-------------------------------+------------------------------------
     Reporter:  TheRealEckat   |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  HTTP handling  |                  Version:  1.4
     Severity:  Normal         |               Resolution:
     Keywords:  development    |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by kilrogg):

 * type:  Cleanup/optimization => Bug
 * component:  Documentation => HTTP handling


Comment:

 I opened Pull request #3987 with a fix for GZipMiddleware:
 https://github.com/django/django/pull/3987

 I backported django.utils.text.compress_sequence and some of the newer
 GZipMiddleware code to 1.4 to check for response._base_content_is_iter
 before consuming response.content and added handling of iterables in
 responses.

 This bug also happens when returning HTTPResponse(iter(...)) in any view.

 Is this a feasible solution? Was it okay to recategorize this ticket?
 This is my first django ticket I'm working on, so any feedback is very
 welcome.

--
Ticket URL: <https://code.djangoproject.com/ticket/24158#comment:7>
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/070.f0a8571facfba3523909e2d7267ed682%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to