Skip to content

Commit

Permalink
完善
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Jan 10, 2020
1 parent f311fe0 commit 321a1b7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace think\swoole;

use think\Middleware;
use think\Response;
use think\Route;
use think\swoole\concerns\ModifyProperty;

Expand Down Expand Up @@ -39,7 +38,7 @@ protected function loadRoutes(): void
{
if (!isset(self::$route)) {
parent::loadRoutes();
self::$route = $this->app->route;
self::$route = clone $this->app->route;
$this->modifyProperty(self::$route, null);
$this->modifyProperty(self::$route, null, 'request');
}
Expand Down

0 comments on commit 321a1b7

Please sign in to comment.