Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…anks, simonbun.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5bafb499e7647bb0829d566538c1c8d621bdee0f 1 parent f759dac
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/middleware/
1  django/middleware/
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.