Closed ostap-mykhaylyak closed 3 weeks ago
@all remember to set:
$routes->match(['get', 'head'], '/', 'Home::index');
This is not a bug. If necessary, HEAD routes also need to be defined.
However, if there is a GET route, HEAD should also be accepted, so there is room for enhancement.
PHP Version
8.3
CodeIgniter4 Version
4.5.4
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
No response
What happened?
If try to get only headers, return 404:
Steps to Reproduce
curl -s -I https://codeigniter.com/
Expected Output
return 200
Anything else?
No response