Welcome Guest, Not a member yet? Register   Sign In
Lowercase HTTP method bug
#1

For historical reasons, CI is using lowercase HTTP method names like "get", "post" in many places.
But HTTP method names are case-sensitive and the standardized methods are defined in all-uppercase US-ASCII letters.
That is not "get" but "GET".

In fact, most servers do not accept "get" requests.
Code:
$ curl -X get https://codeigniter.com
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

I would like to fix this historical bug. So I sent a Pull Request:
https://github.com/codeigniter4/CodeIgniter4/pull/8186

For more information on the impact on applications, see
https://github.com/codeigniter4/CodeIgni...1285fa9186

Any comment is welcome.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB