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:
parent
f759dac2c9
commit
5bafb499e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue