Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liufee committed Aug 23, 2017
1 parent 89cf5b2 commit f222b21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/web/Request.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit f222b21

Please sign in to comment.