mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 08:02:48 +08:00
改进
This commit is contained in:
@@ -210,8 +210,6 @@ class Request
|
|||||||
unset($server['HTTPS']);
|
unset($server['HTTPS']);
|
||||||
$server['SERVER_PORT'] = 80;
|
$server['SERVER_PORT'] = 80;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$info['scheme'] = 'http';
|
|
||||||
}
|
}
|
||||||
if (isset($info['port'])) {
|
if (isset($info['port'])) {
|
||||||
$server['SERVER_PORT'] = $info['port'];
|
$server['SERVER_PORT'] = $info['port'];
|
||||||
@@ -250,7 +248,7 @@ class Request
|
|||||||
$options['baseUrl'] = $info['path'];
|
$options['baseUrl'] = $info['path'];
|
||||||
$options['pathinfo'] = '/' == $info['path'] ? '/' : ltrim($info['path'], '/');
|
$options['pathinfo'] = '/' == $info['path'] ? '/' : ltrim($info['path'], '/');
|
||||||
$options['method'] = $server['REQUEST_METHOD'];
|
$options['method'] = $server['REQUEST_METHOD'];
|
||||||
$options['domain'] = $info['scheme'] . '://' . $server['HTTP_HOST'];
|
$options['domain'] = isset($info['scheme']) ? $info['scheme'] . '://' . $server['HTTP_HOST'] : '';
|
||||||
$options['content'] = $content;
|
$options['content'] = $content;
|
||||||
self::$instance = new self($options);
|
self::$instance = new self($options);
|
||||||
return self::$instance;
|
return self::$instance;
|
||||||
|
|||||||
Reference in New Issue
Block a user