summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-06-18 10:51:38 +0200
committerClaude Paroz <claude@2xlibre.net>2016-06-27 10:44:57 +0200
commit9588718cd404d73b2be09241b424b539d8d8c66e (patch)
tree3ad0f2054fb540fd92ce9ae0125ed70e19eee2e8 /docs/ref
parentca77b509059831b055a3b735ff77e042f8e1c0eb (diff)
Fixed #5897 -- Added the Content-Length response header in CommonMiddleware
Thanks Tim Graham for the review.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/middleware.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 8b991d5ed8..371121c30e 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -66,6 +66,12 @@ Adds a few conveniences for perfectionists:
for each request by MD5-hashing the page content, and it'll take care of
sending ``Not Modified`` responses, if appropriate.
+* Sets the ``Content-Length`` header for non-streaming responses.
+
+.. versionchanged: 1.11
+
+ Older versions didn't set the ``Content-Length`` header.
+
.. attribute:: CommonMiddleware.response_redirect_class
Defaults to :class:`~django.http.HttpResponsePermanentRedirect`. Subclass