mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Request类的create方法
This commit is contained in:
@@ -236,7 +236,7 @@ class Request
|
|||||||
$options['server'] = $server;
|
$options['server'] = $server;
|
||||||
$options['url'] = $server['REQUEST_URI'];
|
$options['url'] = $server['REQUEST_URI'];
|
||||||
$options['baseUrl'] = $info['path'];
|
$options['baseUrl'] = $info['path'];
|
||||||
$options['pathinfo'] = ltrim($info['path'], '/');
|
$options['pathinfo'] = '/' == $info['path'] ? '/' : ltrim($info['path'], '/');
|
||||||
$options['method'] = $server['REQUEST_METHOD'];
|
$options['method'] = $server['REQUEST_METHOD'];
|
||||||
$options['domain'] = $server['HTTP_HOST'];
|
$options['domain'] = $server['HTTP_HOST'];
|
||||||
$options['content'] = $content;
|
$options['content'] = $content;
|
||||||
|
|||||||
Reference in New Issue
Block a user