|
|
|
@ -231,11 +231,17 @@ class Request extends \yii\base\Request
|
|
|
|
|
{ |
|
|
|
|
if (isset($_POST[$this->methodParam])) { |
|
|
|
|
return strtoupper($_POST[$this->methodParam]); |
|
|
|
|
} elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) { |
|
|
|
|
return strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']); |
|
|
|
|
} else { |
|
|
|
|
return isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (isset($_SERVER['REQUEST_METHOD'])) { |
|
|
|
|
return strtoupper($_SERVER['REQUEST_METHOD']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return 'GET'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|