Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 5bafb499e7647bb0829d566538c1c8d621bdee0f 1 parent f759dac
@jacobian jacobian authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/middleware/gzip.py
View
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.