Skip to content

Commit 7e19f17

Browse files
Update http_kernel.rst
1 parent c01ea6a commit 7e19f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/http_kernel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ look like this::
742742

743743
.. _http-kernel-resource-locator:
744744

745-
Also, note that by default, if the ``_format`` attribute if not set in your request, the value will be ``html``.
746-
So, if your sub request return something else than ``html`` (like json for instance) you can set it like this::
745+
Also, note that by default, if the ``_format`` attribute is not set in your request, the value will be ``html``.
746+
So, if your sub request returns something else than ``html`` (like json for instance) you can set it by setting the ``_format`` attribute on the request::
747747

748748
$request->attributes->set('_format', 'json');
749749

0 commit comments

Comments
 (0)