Lowercase HTTP method bug - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: Lowercase HTTP method bug (/showthread.php?tid=88813) |
Lowercase HTTP method bug - kenjis - 11-12-2023 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 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/CodeIgniter4/pull/8186/files#diff-3074e06316eddff5690e863736654e63a2c6242993b77f5fff82471285fa9186 Any comment is welcome. |