For backward compatibility, allow both GET and POST if an action does not specify method

This commit is contained in:
Kijin Sung 2021-04-12 22:21:58 +09:00
parent 9a70726be2
commit 73695ccdd2

View file

@ -101,10 +101,12 @@ class ModuleActionParser extends BaseParser
{
$methods = ['POST'];
}
/*
elseif ($action_type === 'view' || starts_with('disp', $action_name))
{
$methods = ['GET'];
}
*/
else
{
$methods = ['GET', 'POST'];