From 7a9631975f940b37cbcd385dbe4b7a728fd9c300 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 20 Nov 2011 22:28:51 -0600 Subject: [PATCH] dont return 404 error on null return from existing route. --- laravel/routing/route.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/laravel/routing/route.php b/laravel/routing/route.php index 9777a952..39f42902 100644 --- a/laravel/routing/route.php +++ b/laravel/routing/route.php @@ -111,15 +111,6 @@ public function call() } } - // If we still don't have a response, we're out of options and - // will use the 404 response. We will still let the response - // hit the after filter in case the developer is doing any - // logging or other work where every response is needed. - if (is_null($response)) - { - $response = Response::error('404'); - } - // The after filter and the framework expects all responses to // be instances of the Response class. If the route did not // return an instsance of Response, we will make on now.