Tai Lee wrote:
> http://code.djangoproject.com/ticket/7581
> 
> Just posted this ticket with an initial patch (sans documentation
> changes and tests). Basically there are several middleware classes
> that access HttpResponse.content directly which break streaming
> HttpResponse objects that use a generator to yield content
> progressively.
> 
> I'd like to get some feedback on the direction and implementation of
> the patch and proposed solution before I go any further with tests or
> documentation changes.

In GzipMiddleware you don't touch Content-Length if the response is not 
string. This means that if a response has Content-Length already set it 
will become incorrect upon gzipping the content. In this case 
Content-Length can only be deleted from headers, though sending 
responses with no determined length is a bit ugly...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to