Prevented routable middleware to dispatch 404 page

This commit is contained in:
Alejandro Celaya 2016-04-30 19:24:45 +02:00
parent 4ae08c02ec
commit 3bb899bced
2 changed files with 1 additions and 1 deletions

0
bin/cli Normal file → Executable file
View file

View file

@ -85,7 +85,7 @@ class GenerateShortcodeMiddleware implements MiddlewareInterface
} catch (\Exception $e) {
$response->getBody()->write($e);
} finally {
return is_callable($out) ? $out($request, $response) : $response;
return $response;
}
}
}