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