This commit is contained in:
2020-12-14 17:48:29 +08:00
parent 99becd3661
commit 546a118665
+1 -1
View File
@@ -48,7 +48,7 @@ class Reduce
return function ($stack, $pipe) {
return function ($passable) use ($stack, $pipe) {
if ($pipe instanceof \HttpServer\IInterface\Middleware) {
return $pipe->handler($passable, $stack);
return $pipe->onHandler($passable, $stack);
} else {
return $pipe($passable, $stack);
}