|
@@ -40,11 +40,9 @@ |
|
|
block discarded – undo |
|
40
|
40
|
$bufferedBody = ob_get_clean(); |
|
41
|
41
|
$response->getBody()->write($bufferedBody); |
|
42
|
42
|
$response = $response->withStatus(200); |
|
43
|
|
- } |
|
44
|
|
- catch (\Phroute\Phroute\Exception\HttpRouteNotFoundException $e) { |
|
|
43
|
+ } catch (\Phroute\Phroute\Exception\HttpRouteNotFoundException $e) { |
|
45
|
44
|
$reponse = new \Zend\Diactoros\Response\HtmlResponse($e->getMessage(), 404); |
|
46
|
|
- } |
|
47
|
|
- catch (\Phroute\Phroute\Exception\BadRouteException $e) { |
|
|
45
|
+ } catch (\Phroute\Phroute\Exception\BadRouteException $e) { |
|
48
|
46
|
$allowedMethods = $routeInfo[1]; |
|
49
|
47
|
$reponse = new \Zend\Diactoros\Response\HtmlResponse($e->getMessage(), 405); |
|
50
|
48
|
} |
Please login to merge, or discard this patch.