Skip to content

Commit b0726ee

Browse files
committed
Support HTTP methods PUT, DELETE, PATCH and OPTIONS
1 parent 916c014 commit b0726ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

classes/Mvc/Request.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ class Request {
1010
'get' => ['default' => 'get', 'fallback' => 'post'],
1111
'post' => ['default' => 'post', 'fallback' => 'get'],
1212
'head' => ['default' => 'get', 'fallback' => 'post'],
13-
'cli' => ['default' => 'cli'],
13+
'cli' => ['default' => 'body'],
14+
'put' => ['default' => 'body'],
15+
'delete' => ['default' => 'body'],
16+
'patch' => ['default' => 'body'],
17+
'options' => ['default' => 'body'],
1418
];
1519

1620
/**

0 commit comments

Comments
 (0)