Skip to content

Commit

Permalink
docs: add about CURLRequest::request() HTTP verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 10, 2023
1 parent 9e18aae commit 8a0ced0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions user_guide_src/source/installation/upgrade_450.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Breaking Changes
Lowercase HTTP Method Name
==========================

Request::getMethod()
--------------------

For historical reasons, ``Request::getMethod()`` returned HTTP method names in
lower case by default.

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

strtolower($request->getMethod())

And you should use uppercase HTTP method names in your app code. You should update
the keys in ``$methods`` in **app/Config/Filters.php**::
And you should use uppercase HTTP method names in your app code.

app/Config/Filters.php
----------------------

You should update the keys in ``$methods`` in **app/Config/Filters.php**::

public array $methods = [
'POST' => ['invalidchars', 'csrf'],
Expand Down

0 comments on commit 8a0ced0

Please sign in to comment.