Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a9b74b

Browse filesBrowse 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
Copy full SHA for 6a9b74b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎components/http_foundation.rst

Copy file name to clipboardExpand all lines: components/http_foundation.rst
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.