Skip to content

Commit 59f8e5b

Browse files
committed
change headers example to use a request header (not a response header)
1 parent 2d25c5e commit 59f8e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ can be accessed via several public properties:
6666
* ``server``: equivalent of ``$_SERVER``;
6767

6868
* ``headers``: mostly equivalent to a sub-set of ``$_SERVER``
69-
(``$request->headers->get('Content-Type')``).
69+
(``$request->headers->get('user-agent')``).
7070

7171
Each property is a :class:`Symfony\\Component\\HttpFoundation\\ParameterBag`
7272
instance (or a sub-class of), which is a data holder class:

0 commit comments

Comments
 (0)