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(