Fixed #27346 -- Stopped setting the Content-Length header in ConditionalGetMiddleware.

This commit is contained in:
Adam Malinowski 2016-11-05 12:39:46 +01:00 committed by Tim Graham
parent c7dddc01d6
commit 37809b891e
5 changed files with 7 additions and 35 deletions

View file

@ -181,12 +181,10 @@ header, the middleware adds one if needed. If the response has a ``ETag`` or
``If-Modified-Since``, the response is replaced by an
:class:`~django.http.HttpResponseNotModified`.
Also sets ``Content-Length`` response-header.
.. versionchanged:: 1.11
In older versions, the middleware set the ``Date`` header and didn't set
the ``ETag`` header.
In older versions, the middleware set the ``Content-Length`` and ``Date``
headers and didn't set the ``ETag`` header.
Locale middleware
-----------------