From 9490b0865b1bf7709ddfa7b327d406b4be94f294 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 6 Mar 2016 23:06:08 +0100 Subject: [PATCH] Added minor clarification It was not clear if the following code applies to BinaryFileResponse only or to all file responses. Since the following two paragraphs ("It is possible to delete ..." and "If you just created...") also apply to BinaryFileResponse only, it would be even better to have a separate heading for BinaryFileResponse, but I don't know how to create another sub-heading at this level. --- components/http_foundation/introduction.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index 955af54e9d5..2cbae21727c 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -474,7 +474,8 @@ if it should:: BinaryFileResponse::trustXSendfileTypeHeader(); -You can still set the ``Content-Type`` of the sent file, or change its ``Content-Disposition``:: +With the ``BinaryFileResponse``, you can still set the ``Content-Type`` of the sent file, +or change its ``Content-Disposition``:: $response->headers->set('Content-Type', 'text/plain'); $response->setContentDisposition(