summaryrefslogtreecommitdiff
path: root/django/middleware
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-11-22 20:31:09 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-11-22 20:31:09 +0000
commit5bafb499e7647bb0829d566538c1c8d621bdee0f (patch)
treefb3d5424946b7bc669994003c0eaee59141c5072 /django/middleware
parentf759dac2c98372c8b27e2a18b942e653941b708d (diff)
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
Diffstat (limited to 'django/middleware')
-rw-r--r--django/middleware/gzip.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/middleware/gzip.py b/django/middleware/gzip.py
index 7d860abdb1..a7c74481d0 100644
--- a/django/middleware/gzip.py
+++ b/django/middleware/gzip.py
@@ -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