diff --git a/templates/api/Router.php b/templates/api/Router.php index b42aa49..61cc82b 100644 --- a/templates/api/Router.php +++ b/templates/api/Router.php @@ -81,7 +81,7 @@ public static function handle($class, $method, $vars) { // convert all headers to lowercase: $headers = array(); - foreach(apache_request_headers() as $key => $value) { + foreach($_SERVER as $key => $value) { $headers[strtolower($key)] = $value; } @@ -258,4 +258,4 @@ public static function fetch_from_array(&$array, $index=null, $default = null) 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported' ); -} \ No newline at end of file +}