mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: move spoofRequestMethod() into getRequestObject()
This commit is contained in:
parent
21e8f25f1f
commit
b20204af2f
@ -357,8 +357,6 @@ class CodeIgniter
|
||||
$this->getRequestObject();
|
||||
$this->getResponseObject();
|
||||
|
||||
$this->spoofRequestMethod();
|
||||
|
||||
try {
|
||||
$this->forceSecureAccess();
|
||||
|
||||
@ -642,6 +640,8 @@ class CodeIgniter
|
||||
protected function getRequestObject()
|
||||
{
|
||||
if ($this->request instanceof Request) {
|
||||
$this->spoofRequestMethod();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -652,6 +652,8 @@ class CodeIgniter
|
||||
}
|
||||
|
||||
$this->request = Services::request();
|
||||
|
||||
$this->spoofRequestMethod();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user