router
router copied to clipboard
Added support for PHP FPM on PATCH/DELETE/PUT requests.
Hi, on PHP FPM (in my case PHP FPM 7.4), the getallheaders()
function returns an array with other keys than on PHP for Apache.
This causes the PUT
, DELETE
, or PATCH
requests are not recognized and the request is processed like a POST
request. This patch will keep the servers without the getallheaders()
function to work.