Skip to content

Commit

Permalink
Fixed #3052: GZIP middleware now correctly reports Content-Length. Th…
Browse files Browse the repository at this point in the history
…anks, simonbun.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Nov 22, 2006
1 parent f759dac commit 5bafb49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/middleware/gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.