refactor: move spoofRequestMethod() into getRequestObject()

This commit is contained in:
kenjis 2023-10-17 09:13:04 +09:00
parent 21e8f25f1f
commit b20204af2f
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -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();
}
/**