Merge pull request #405 from digital-codes/master

Enable DELETE method to receive request body
pull/434/head
Mike Cao 5 years ago committed by GitHub
commit b4842fc021
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