diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 21e9bbfb13e..f144e378bef 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -850,7 +850,7 @@ or change its ``Content-Disposition``:: // ... $response->headers->set('Content-Type', 'text/plain'); - $response->setContentDisposition( + $response->headers->set('Content-Disposition', ResponseHeaderBag::DISPOSITION_ATTACHMENT, 'filename.txt' );