Skip to content

Commit 700b75b

Browse files
committed
feat: do not use post-field with DELETE method
1 parent 826a705 commit 700b75b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context/ApiContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function iSendRequestToRoute(
138138
$queryString = http_build_query($this->requestParams);
139139
}
140140

141-
if (in_array($method, [Request::METHOD_POST, Request::METHOD_PATCH, Request::METHOD_PUT, Request::METHOD_DELETE], true)) {
141+
if (in_array($method, [Request::METHOD_POST, Request::METHOD_PATCH, Request::METHOD_PUT], true)) {
142142
$postFields = $this->requestParams;
143143
}
144144

0 commit comments

Comments
 (0)