From b3ab99f0e02f85f07d468157807dc52d39140463 Mon Sep 17 00:00:00 2001 From: anvalchev <32509996+anvalchev@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:39:53 +0000 Subject: [PATCH] fix: Remove $path blocking --- src/HttpFunctionWrapper.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/HttpFunctionWrapper.php b/src/HttpFunctionWrapper.php index 31fbd251..92a990c0 100644 --- a/src/HttpFunctionWrapper.php +++ b/src/HttpFunctionWrapper.php @@ -54,11 +54,6 @@ private function validateFirstParameter(ReflectionParameter $param): void public function execute(ServerRequestInterface $request): ResponseInterface { - $path = $request->getUri()->getPath(); - if ($path == '/robots.txt' || $path == '/favicon.ico') { - return new Response(404); - } - $response = call_user_func($this->function, $request); if (is_string($response)) {