Enable DELETE method to receive request body

Delete for CRUD needs request data in body
pull/405/head
Andreas Kugel 5 years ago committed by GitHub
parent e459a54017
commit 0145f629d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -211,7 +211,7 @@ class Request {
$method = self::getMethod();
if ($method == 'POST' || $method == 'PUT' || $method == 'PATCH') {
if ($method == 'POST' || $method == 'PUT' || $method == 'DELETE' || $method == 'PATCH') {
$body = file_get_contents('php://input');
}

Loading…
Cancel
Save