Skip to content

Commit

Permalink
Add ability to send specific HTTP request method (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammadreza-73 committed Apr 25, 2023
1 parent 09fb918 commit e28d82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Core/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Request
public function __construct()
{
$this->request['uri'] = strtok($_SERVER['REQUEST_URI'], '?');
$this->request['method'] = $_SERVER['REQUEST_METHOD'];
$this->request['method'] = $_POST['_method'] ?? $_SERVER['REQUEST_METHOD'];
$this->request['ip'] = $_SERVER['REMOTE_ADDR'];
$this->request['params'] = $_REQUEST;
}
Expand Down

0 comments on commit e28d82f

Please sign in to comment.