Skip to content

Commit 90368d5

Browse files
committed
Send request body in DELETE requests
Fixes Codeception/module-rest#55 Partially reverts #34 released in 1.4.2
1 parent d5b87df commit 90368d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Lib/InnerBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ protected function clientRequest($method, $uri, array $parameters = [], array $f
209209
}
210210
}
211211

212-
if (!in_array($method, ['GET', 'HEAD', 'DELETE', 'OPTIONS'], true) && $content === null && !empty($parameters)) {
212+
if (!in_array($method, ['GET', 'HEAD', 'OPTIONS'], true) && $content === null && !empty($parameters)) {
213213
$content = http_build_query($parameters);
214214
}
215215
}

0 commit comments

Comments
 (0)