Skip to content

Commit 53159c3

Browse files
committed
DELETE method sends request body
Reverts #52 Fixes #55
1 parent 2cd9901 commit 53159c3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Codeception/Module/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
*/
8484
class REST extends CodeceptionModule implements DependsOnModule, PartedModule, API, ConflictsWithModule
8585
{
86-
const QUERY_PARAMS_AWARE_METHODS = ['GET', 'HEAD', 'DELETE', 'OPTIONS'];
86+
const QUERY_PARAMS_AWARE_METHODS = ['GET', 'HEAD', 'OPTIONS'];
8787

8888
protected $config = [
8989
'url' => '',

tests/unit/Codeception/Module/RestTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ public function queryParamsAwareMethods()
233233
return [
234234
'GET' => ['GET'],
235235
'HEAD' => ['HEAD'],
236-
'DELETE' => ['DELETE'],
237236
'OPTIONS' => ['OPTIONS'],
238237
];
239238
}

0 commit comments

Comments
 (0)