Skip to content

Commit 0a3dc71

Browse files
authored
Update Runner.php
1 parent f54898c commit 0a3dc71

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/Runner.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ public function handleException($exception)
3434

3535
foreach ($handlers as $handler) {
3636
if ($handler instanceof PrettyPageHandler) {
37+
3738
$handler->addDataTable('ThinkPHP Application', [
38-
'Version' => App::VERSION,
39-
'Accept Charset' => Request::header('ACCEPT_CHARSET') ?: '<none>',
40-
'HTTP Method' => Request::method(),
41-
'Path' => Request::pathinfo(),
42-
'Query String' => Request::query() ?: '<none>',
43-
'Base URL' => Request::baseUrl(),
44-
'Scheme' => Request::scheme(),
45-
'Port' => Request::port(),
46-
'Host' => Request::host(),
39+
'Version' => App::VERSION,
40+
'URI' => Request::url(true),
41+
'Request URI' => Request::url(),
42+
'Path Info' => Request::pathinfo(),
43+
'Query String' => Request::query() ?: '<none>',
44+
'HTTP Method' => Request::method(),
45+
'Base URL' => Request::baseUrl(),
46+
'Scheme' => Request::scheme(),
47+
'Port' => Request::port(),
48+
'Host' => Request::host(),
4749
]);
4850

4951
// 环境变量

0 commit comments

Comments
 (0)