Skip to content

Commit

Permalink
fix bug with no middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkrenek committed Dec 25, 2022
1 parent aaf8bf0 commit 23fccf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function processMiddleware(int $index, Request $request, \Closure $respon

public function processToResponse(Request $request, \Closure $response)
{
if (!count($this->middlewares)) return;
if (!count($this->middlewares)) return $response();

return $this->processMiddleware(0, $request, $response);
}
Expand Down

0 comments on commit 23fccf4

Please sign in to comment.