版本更新

This commit is contained in:
thinkphp
2019-01-11 16:04:58 +08:00
parent 7c1b587eb9
commit c255c22b2f
2 changed files with 2 additions and 1 deletions

View File

@@ -529,6 +529,7 @@ class Request
} else {
$this->method = 'POST';
}
unset($_POST[Config::get('var_method')]);
} elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
$this->method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
} else {