We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db277db commit 057013aCopy full SHA for 057013a
1 file changed
src/Route/NormalRoute.php
@@ -49,6 +49,7 @@ public function __construct()
49
*/
50
public function handleHttpRequest($request)
51
{
52
+ $this->routeParams->file = '';
53
$host = $request->header['host'] ?? '';
54
if ($host) {
55
$host = explode(':', $host)[0] ?? '';
@@ -124,8 +125,6 @@ public function parsePath($path)
124
125
$root = getInstance()->config['http']['domain'][$this->getHost()]['root'] ?? ROOT_PATH . '/www/';
126
$this->routeParams->file = $root . $path;
127
return true;
- } else {
128
- $this->routeParams->file = '';
129
}
130
131
$route = explode('/', ltrim($path, '/'));
0 commit comments