diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-06-18 10:51:38 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-06-27 10:44:57 +0200 |
| commit | 9588718cd404d73b2be09241b424b539d8d8c66e (patch) | |
| tree | 3ad0f2054fb540fd92ce9ae0125ed70e19eee2e8 /docs | |
| parent | ca77b509059831b055a3b735ff77e042f8e1c0eb (diff) | |
Fixed #5897 -- Added the Content-Length response header in CommonMiddleware
Thanks Tim Graham for the review.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/middleware.txt | 6 | ||||
| -rw-r--r-- | docs/releases/1.11.txt | 3 |
2 files changed, 9 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 diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index e5dcc47e24..23af4a4d60 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -197,6 +197,9 @@ Requests and Responses * Added :meth:`QueryDict.fromkeys() <django.http.QueryDict.fromkeys>`. +* :class:`~django.middleware.common.CommonMiddleware` now sets the + ``Content-Length`` response header for non-streaming responses. + Serialization ~~~~~~~~~~~~~ |
