From f222b21bafa5df0a95f779215d82dfa6b086d66e Mon Sep 17 00:00:00 2001 From: liufee Date: Wed, 23 Aug 2017 15:13:27 +0800 Subject: [PATCH] fix bug --- src/web/Request.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/web/Request.php b/src/web/Request.php index e0e524e..af7bbf0 100644 --- a/src/web/Request.php +++ b/src/web/Request.php @@ -260,9 +260,7 @@ public function getQueryParam($name, $defaultValue = null) public function getHostInfo() { if ($this->_hostInfo === null) { - $secure = $this->getIsSecureConnection(); - $http = $secure ? 'https' : 'http'; - $this->_hostInfo = $http . '://' . $this->swooleRequest->header['host']; + $this->_hostInfo = $this->swooleRequest->header['host']; } return $this->_hostInfo; }