Skip to content

Commit 5df0836

Browse files
committed
docs: fix CONTENT_TYPE header
1 parent def452d commit 5df0836

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Getting Data
8585

8686
The ``getVar()`` method will pull from ``$_REQUEST``, so will return any data from ``$_GET``, ``$POST``, or ``$_COOKIE`` (depending on php.ini `request-order <https://www.php.net/manual/en/ini.core.php#ini.request-order>`_).
8787

88-
.. note:: If the incoming request has a ``CONTENT_TYPE`` header set to ``application/json``,
88+
.. note:: If the incoming request has a ``Content-Type`` header set to ``application/json``,
8989
the ``getVar()`` method returns the JSON data instead of ``$_REQUEST`` data.
9090

9191
While this
@@ -119,7 +119,7 @@ arrays, pass in ``true`` as the first parameter.
119119
The second and third parameters match up to the ``depth`` and ``options`` arguments of the
120120
`json_decode <https://www.php.net/manual/en/function.json-decode.php>`_ PHP function.
121121

122-
If the incoming request has a ``CONTENT_TYPE`` header set to ``application/json``, you can also use ``getVar()`` to get
122+
If the incoming request has a ``Content-Type`` header set to ``application/json``, you can also use ``getVar()`` to get
123123
the JSON stream. Using ``getVar()`` in this way will always return an object.
124124

125125
Getting Specific Data from JSON
@@ -132,7 +132,7 @@ data that you want or you can use "dot" notation to dig into the JSON to get dat
132132

133133
If you want the result to be an associative array instead of an object, you can use ``getJsonVar()`` instead and pass
134134
true in the second parameter. This function can also be used if you can't guarantee that the incoming request will have the
135-
correct ``CONTENT_TYPE`` header.
135+
correct ``Content-Type`` header.
136136

137137
.. literalinclude:: incomingrequest/011.php
138138

0 commit comments

Comments
 (0)