Skip to content

Commit 674b7b4

Browse files
committed
Reworded the prepare() method explanation
1 parent 8e7f0a1 commit 674b7b4

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)