Skip to content

Reworded the prepare() method explanation #8356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ UTF-8.
Sending the Response
~~~~~~~~~~~~~~~~~~~~

Before sending the Response, you can ensure that it is compliant with the HTTP
specification by calling the
: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)::

$response->prepare($request);

Expand Down