summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2018-05-15 18:12:11 +0200
committerGitHub <noreply@github.com>2018-05-15 18:12:11 +0200
commita177f854c34718e473bcd0a2dc6c4fd935c8e327 (patch)
treed15e436c26edfd2037972c48095b4bcd2ad48505 /docs/releases
parent2dcc5d629a6439b5547cdd6e67815cabf608fcd4 (diff)
Fixed #16470 -- Allowed FileResponse to auto-set some Content headers.
Thanks Simon Charette, Jon Dufresne, and Tim Graham for the reviews.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/2.1.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt
index bc565d51b1..083488491c 100644
--- a/docs/releases/2.1.txt
+++ b/docs/releases/2.1.txt
@@ -255,6 +255,11 @@ Requests and Responses
* Added the ``samesite`` argument to :meth:`.HttpResponse.set_cookie` to allow
setting the ``SameSite`` cookie flag.
+* The new ``as_attachment`` argument for :class:`~django.http.FileResponse`
+ sets the ``Content-Disposition`` header to make the browser ask if the user
+ wants to download the file. ``FileResponse`` also tries to set the
+ ``Content-Type`` and ``Content-Length`` headers where appropriate.
+
Serialization
~~~~~~~~~~~~~