diff --git a/flight/net/Request.php b/flight/net/Request.php index 26c991a..c3da429 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -58,7 +58,7 @@ class Request { 'cookies' => new Collection($_COOKIE), 'files' => new Collection($_FILES), 'secure' => getenv('HTTPS') && getenv('HTTPS') != 'off', - 'accept' => getenv('HTTP_ACCEPT'), + 'accept' => getenv('HTTP_ACCEPT') ?: '', 'proxy_ip' => $this->getProxyIpAddress() ); } @@ -84,7 +84,7 @@ class Request { $this->url = '/'; } else { - $_GET = self::parseQuery($this->url); + $_GET += self::parseQuery($this->url); $this->query->setData($_GET); }