mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-16 02:30:09 +03:00
[OPTIMISATION] Made getAllHeaders protected.
This commit is contained in:
@@ -30,7 +30,7 @@ class Request {
|
||||
$this->headers = $this->getAllHeaders();
|
||||
}
|
||||
|
||||
public function getAllHeaders() {
|
||||
protected function getAllHeaders() {
|
||||
$headers = array();
|
||||
foreach ($_SERVER as $name => $value) {
|
||||
if (substr($name, 0, 5) === 'HTTP_') {
|
||||
|
||||
Reference in New Issue
Block a user