mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Merge branch 'master' of https://git.topthink.com/topteam/framework
This commit is contained in:
@@ -1342,6 +1342,9 @@ class Request
|
||||
*/
|
||||
public function host()
|
||||
{
|
||||
if (isset($_SERVER['HTTP_X_REAL_HOST'])) {
|
||||
return $_SERVER['HTTP_X_REAL_HOST'];
|
||||
}
|
||||
return $this->server('HTTP_HOST');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user