Skip to content

Commit 4b0d89b

Browse files
authored
Merge pull request #38 from Codeception/send-request-body-in-delete-requests
Send request body in DELETE requests
2 parents 19d4f74 + 90368d5 commit 4b0d89b

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
@@ -224,7 +224,7 @@ protected function clientRequest($method, $uri, array $parameters = [], array $f
224224
}
225225
}
226226

227-
if (!in_array($method, ['GET', 'HEAD', 'DELETE', 'OPTIONS'], true) && $content === null && !empty($parameters)) {
227+
if (!in_array($method, ['GET', 'HEAD', 'OPTIONS'], true) && $content === null && !empty($parameters)) {
228228
$content = http_build_query($parameters);
229229
}
230230
}

0 commit comments

Comments
 (0)