Skip to content

Commit

Permalink
修改编码错误
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Nov 30, 2020
1 parent 1de2983 commit 49b5d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Core/Dispatcher/RequestDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function __construct() {
$this->serverType = lcfirst(explode('\\', static::class)[1]);
$this->middlewareMapping = new MiddlewareMapping();

foreach ($this->getConfig()->get('middleware.' . strtotime($this->serverType) . '.before', []) as $middleware) {
foreach ($this->getConfig()->get('middleware.' . strtolower($this->serverType) . '.before', []) as $middleware) {
$this->middlewareMapping->addBeforeMiddleware($middleware);
}
foreach ($this->getConfig()->get('middleware.' . strtotime($this->serverType) . '.after', []) as $middleware) {
foreach ($this->getConfig()->get('middleware.' . strtolower($this->serverType) . '.after', []) as $middleware) {
$this->middlewareMapping->addAfterMiddleware($middleware);
}
}
Expand Down

0 comments on commit 49b5d99

Please sign in to comment.