Skip to content

Commit 6a9b74b

Browse files
committed
minor #8356 Reworded the prepare() method explanation (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Reworded the prepare() method explanation After reading #8348, I think we could improve `prepare()` method explanation a bit. If you don't agree, please close because this is a very minor change. Thanks! Commits ------- 674b7b4 Reworded the prepare() method explanation
2 parents 8dfb4c2 + 674b7b4 commit 6a9b74b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/http_foundation.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,9 @@ UTF-8.
356356
Sending the Response
357357
~~~~~~~~~~~~~~~~~~~~
358358

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::
359+
Before sending the Response, you can optionally call the
360+
:method:`Symfony\\Component\\HttpFoundation\\Response::prepare` method to fix any
361+
incompatibility with the HTTP specification (e.g. a wrong ``Content-Type`` header)::
362362

363363
$response->prepare($request);
364364

0 commit comments

Comments
 (0)