mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
For backward compatibility, allow both GET and POST if an action does not specify method
This commit is contained in:
parent
9a70726be2
commit
73695ccdd2
1 changed files with 2 additions and 0 deletions
|
|
@ -101,10 +101,12 @@ class ModuleActionParser extends BaseParser
|
||||||
{
|
{
|
||||||
$methods = ['POST'];
|
$methods = ['POST'];
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
elseif ($action_type === 'view' || starts_with('disp', $action_name))
|
elseif ($action_type === 'view' || starts_with('disp', $action_name))
|
||||||
{
|
{
|
||||||
$methods = ['GET'];
|
$methods = ['GET'];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$methods = ['GET', 'POST'];
|
$methods = ['GET', 'POST'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue