Fixed #3052: GZIP middleware now correctly reports Content-Length. Thanks, simonbun.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-22 20:31:09 +00:00
parent f759dac2c9
commit 5bafb499e7
1 changed files with 1 additions and 0 deletions

View File

@ -25,4 +25,5 @@ class GZipMiddleware(object):
response.content = compress_string(response.content)
response['Content-Encoding'] = 'gzip'
response['Content-Length'] = str(len(response.content))
return response