From 90368d5a6dde34d13597cead54586e3ce17edc81 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Sat, 17 Apr 2021 09:54:27 +0300 Subject: [PATCH] Send request body in DELETE requests Fixes https://github.com/Codeception/module-rest/issues/55 Partially reverts #34 released in 1.4.2 --- src/Codeception/Lib/InnerBrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Lib/InnerBrowser.php b/src/Codeception/Lib/InnerBrowser.php index 737f085..ef0a75d 100644 --- a/src/Codeception/Lib/InnerBrowser.php +++ b/src/Codeception/Lib/InnerBrowser.php @@ -209,7 +209,7 @@ protected function clientRequest($method, $uri, array $parameters = [], array $f } } - if (!in_array($method, ['GET', 'HEAD', 'DELETE', 'OPTIONS'], true) && $content === null && !empty($parameters)) { + if (!in_array($method, ['GET', 'HEAD', 'OPTIONS'], true) && $content === null && !empty($parameters)) { $content = http_build_query($parameters); } }