diff --git a/http-handler/Abstracts/Handler.php b/http-handler/Abstracts/Handler.php index 3a02c1ea..d144fbf2 100644 --- a/http-handler/Abstracts/Handler.php +++ b/http-handler/Abstracts/Handler.php @@ -59,6 +59,7 @@ abstract class Handler implements RequestHandlerInterface protected function execute(ServerRequestInterface $request): ResponseInterface { if (empty($this->middlewares) || !$this->middlewares->valid()) { + $this->middlewares->rewind(); return $this->dispatcher($request); }