Skip to content

Commit 8a0ced0

Browse files
committed
docs: add about CURLRequest::request() HTTP verbs
1 parent 9e18aae commit 8a0ced0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

user_guide_src/source/installation/upgrade_450.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Breaking Changes
2323
Lowercase HTTP Method Name
2424
==========================
2525

26+
Request::getMethod()
27+
--------------------
28+
2629
For historical reasons, ``Request::getMethod()`` returned HTTP method names in
2730
lower case by default.
2831

@@ -39,8 +42,12 @@ If you want lowercase HTTP method names, use PHP's ``strtolower()`` function::
3942

4043
strtolower($request->getMethod())
4144

42-
And you should use uppercase HTTP method names in your app code. You should update
43-
the keys in ``$methods`` in **app/Config/Filters.php**::
45+
And you should use uppercase HTTP method names in your app code.
46+
47+
app/Config/Filters.php
48+
----------------------
49+
50+
You should update the keys in ``$methods`` in **app/Config/Filters.php**::
4451

4552
public array $methods = [
4653
'POST' => ['invalidchars', 'csrf'],

0 commit comments

Comments
 (0)