From 0145f629d30caac34cf649c4d14691e2935974f4 Mon Sep 17 00:00:00 2001 From: Andreas Kugel Date: Sat, 21 Dec 2019 20:27:16 +0100 Subject: [PATCH] Enable DELETE method to receive request body Delete for CRUD needs request data in body --- flight/net/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/net/Request.php b/flight/net/Request.php index 1cc09f3..19a8331 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -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'); }