Commit d681f499 authored by Taylor Otwell's avatar Taylor Otwell

fix 404 route issue.

parent 97fb28bd
......@@ -161,15 +161,18 @@ if (count(URI::$segments) > 15)
Request::$route = Routing\Router::route(Request::method(), URI::current());
if ( ! is_null(Request::$route))
{
$response = Request::$route->call();
}
else
if (is_null(Request::$route))
{
Request::$route = new Routing\Route('GET /404', array(function()
{
return Response::error('404');
}));
$response = Response::error('404');
}
$response = Request::$route->call();
/**
* Close the session and write the active payload to persistent
* storage. The session cookie will also be written and if the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment