mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进HOST的获取
This commit is contained in:
@@ -1342,6 +1342,9 @@ class Request
|
|||||||
*/
|
*/
|
||||||
public function host()
|
public function host()
|
||||||
{
|
{
|
||||||
|
if (isset($_SERVER['HTTP_X_REAL_HOST'])) {
|
||||||
|
return $_SERVER['HTTP_X_REAL_HOST'];
|
||||||
|
}
|
||||||
return $this->server('HTTP_HOST');
|
return $this->server('HTTP_HOST');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user