|
|
@ -58,7 +58,7 @@ class Request {
|
|
|
|
'cookies' => new Collection($_COOKIE),
|
|
|
|
'cookies' => new Collection($_COOKIE),
|
|
|
|
'files' => new Collection($_FILES),
|
|
|
|
'files' => new Collection($_FILES),
|
|
|
|
'secure' => getenv('HTTPS') && getenv('HTTPS') != 'off',
|
|
|
|
'secure' => getenv('HTTPS') && getenv('HTTPS') != 'off',
|
|
|
|
'accept' => getenv('HTTP_ACCEPT'),
|
|
|
|
'accept' => getenv('HTTP_ACCEPT') ?: '',
|
|
|
|
'proxy_ip' => $this->getProxyIpAddress()
|
|
|
|
'proxy_ip' => $this->getProxyIpAddress()
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -84,7 +84,7 @@ class Request {
|
|
|
|
$this->url = '/';
|
|
|
|
$this->url = '/';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
$_GET = self::parseQuery($this->url);
|
|
|
|
$_GET += self::parseQuery($this->url);
|
|
|
|
|
|
|
|
|
|
|
|
$this->query->setData($_GET);
|
|
|
|
$this->query->setData($_GET);
|
|
|
|
}
|
|
|
|
}
|
|
|
|