Skip to content

Commit

Permalink
Fixed rewrite-route not being executed in rare instances
Browse files Browse the repository at this point in the history
  • Loading branch information
skipperbent committed Dec 9, 2023
1 parent 99ed44e commit 0f55480
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Pecee/SimpleRouter/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ protected function handleException(Exception $e): ?string

if ($this->request->getRewriteRoute() !== null) {
$this->processedRoutes[] = $this->request->getRewriteRoute();
$this->request->setHasPendingRewrite(false);
}

return $this->routeRequest();
Expand Down

0 comments on commit 0f55480

Please sign in to comment.