Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9490b08

Browse files
ThomasLandauerweaverryan
authored andcommitted
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.
1 parent ff86429 commit 9490b08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/http_foundation/introduction.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ if it should::
474474

475475
BinaryFileResponse::trustXSendfileTypeHeader();
476476

477-
You can still set the ``Content-Type`` of the sent file, or change its ``Content-Disposition``::
477+
With the ``BinaryFileResponse``, you can still set the ``Content-Type`` of the sent file,
478+
or change its ``Content-Disposition``::
478479

479480
$response->headers->set('Content-Type', 'text/plain');
480481
$response->setContentDisposition(

0 commit comments

Comments
 (0)