You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP verbs from the $_SERVER is changed into lowercase before the $this->routes array is checked.
Hence, only lower case HTTP verbs seems to be working, contradicting with the docs.
The text was updated successfully, but these errors were encountered:
The docs http://www.codeigniter.com/user_guide/general/routing.html?highlight=rest#using-http-verbs-in-routes says that HTTP verb rules are case-insensitive and proceeds to give these examples.
But, when I try to use capitalized HTTP verb such as POST etc, 404 error is shown.
Looking through function
_parse_routes()
in system/core/Router.php.HTTP verbs from the $_SERVER is changed into lowercase before the
$this->routes
array is checked.Hence, only lower case HTTP verbs seems to be working, contradicting with the docs.
The text was updated successfully, but these errors were encountered: