mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
调整
This commit is contained in:
@@ -526,6 +526,8 @@ class Request
|
|||||||
if (in_array($method, ['GET', 'POST', 'DELETE', 'PUT', 'PATCH'])) {
|
if (in_array($method, ['GET', 'POST', 'DELETE', 'PUT', 'PATCH'])) {
|
||||||
$this->method = $method;
|
$this->method = $method;
|
||||||
$this->{$this->method}($_POST);
|
$this->{$this->method}($_POST);
|
||||||
|
} else {
|
||||||
|
$this->method = 'POST';
|
||||||
}
|
}
|
||||||
} elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
|
} elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
|
||||||
$this->method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
|
$this->method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
|
||||||
|
|||||||
Reference in New Issue
Block a user