改名
This commit is contained in:
@@ -112,7 +112,7 @@ class Controller extends Application
|
|||||||
*/
|
*/
|
||||||
public function getHeaders(): ?HttpHeaders
|
public function getHeaders(): ?HttpHeaders
|
||||||
{
|
{
|
||||||
if (!$this->headers) {
|
if (!$this->headers && $this->getRequest()) {
|
||||||
$this->headers = $this->getRequest()->headers;
|
$this->headers = $this->getRequest()->headers;
|
||||||
}
|
}
|
||||||
return $this->headers;
|
return $this->headers;
|
||||||
|
|||||||
Reference in New Issue
Block a user