Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 11, 2019
1 parent 4a4b5e6 commit 7c1b587
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/think/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ public function method($method = false)
if (in_array($method, ['GET', 'POST', 'DELETE', 'PUT', 'PATCH'])) {
$this->method = $method;
$this->{$this->method}($_POST);
} else {
$this->method = 'POST';
}
} elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {
$this->method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);
Expand Down

0 comments on commit 7c1b587

Please sign in to comment.