From 76c795bd4868a28cac26c1b33c3cbeed35a8fdab 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 c370c3e0ae8..7ce47f9b872 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.rst @@ -500,7 +500,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(