We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e7f0a1 commit 674b7b4Copy full SHA for 674b7b4
components/http_foundation.rst
@@ -356,9 +356,9 @@ UTF-8.
356
Sending the Response
357
~~~~~~~~~~~~~~~~~~~~
358
359
-Before sending the Response, you can ensure that it is compliant with the HTTP
360
-specification by calling the
361
-:method:`Symfony\\Component\\HttpFoundation\\Response::prepare` method::
+Before sending the Response, you can optionally call the
+:method:`Symfony\\Component\\HttpFoundation\\Response::prepare` method to fix any
+incompatibility with the HTTP specification (e.g. a wrong ``Content-Type`` header)::
362
363
$response->prepare($request);
364
0 commit comments