From 4ecb6187fa7423eefd9f5d817b407a379fc12537 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 26 Sep 2021 00:14:38 +0800 Subject: [PATCH] 111 --- http-handler/Abstracts/Handler.php | 1 + 1 file changed, 1 insertion(+) 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); }