Permalink
Browse files

Fixed #3052: GZIP middleware now correctly reports Content-Length. Th…

…anks, simonbun.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f759dac commit 5bafb499e7647bb0829d566538c1c8d621bdee0f @jacobian jacobian committed Nov 22, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/middleware/gzip.py
@@ -25,4 +25,5 @@ def process_response(self, request, response):
response.content = compress_string(response.content)
response['Content-Encoding'] = 'gzip'
+ response['Content-Length'] = str(len(response.content))
return response

0 comments on commit 5bafb49

Please sign in to comment.