Skip to content

Commit dacb161

Browse files
committed
minor #6336 Added minor clarification (ThomasLandauer)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #6336). Discussion ---------- 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. Commits ------- 9490b08 Added minor clarification
2 parents ff86429 + 9490b08 commit dacb161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/http_foundation/introduction.rst

+2-1
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)