This commit is contained in:
thinkphp
2016-10-15 11:03:56 +08:00
parent 9bb981368a
commit 2ef3ad748b
3 changed files with 6 additions and 4 deletions

View File

@@ -210,6 +210,8 @@ class Request
unset($server['HTTPS']);
$server['SERVER_PORT'] = 80;
}
} else {
$info['scheme'] = 'http';
}
if (isset($info['port'])) {
$server['SERVER_PORT'] = $info['port'];