diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index 26b0113b..39e0bb01 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -28,6 +28,8 @@ abstract class Handler implements RequestHandlerInterface public function __construct(public CHl $handler, public ?Iterator $middlewares) { $this->aspectProxy = Kiri::getDi()->get(AspectProxy::class); + + $this->middlewares->rewind(); }