Skip to content

Commit e78c593

Browse files
committed
Don't send request body with OPTIONS request
1 parent 2c039dc commit e78c593

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
@@ -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'];
86+
const QUERY_PARAMS_AWARE_METHODS = ['GET', 'HEAD', 'DELETE', 'OPTIONS'];
8787

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

0 commit comments

Comments
 (0)