Skip to content

Commit

Permalink
Added minor clarification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ThomasLandauer authored and weaverryan committed Mar 17, 2016
1 parent ff86429 commit 9490b08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9490b08

Please sign in to comment.