Skip to content

Commit 968ff58

Browse files
committed
Send: convert method name to uppercase
execute method assumes that method is uppercase, but there are no checks in send method
1 parent b37981f commit 968ff58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public function sendDelete($url, $params = [], $files = [])
561561
*/
562562
public function send($method, $url, $params = [], $files = [])
563563
{
564-
$this->execute($method, $url, $params, $files);
564+
$this->execute(strtoupper($method), $url, $params, $files);
565565
}
566566

567567
/**

0 commit comments

Comments
 (0)