Update middleware.rst

Added a missing parenthesis.
This commit is contained in:
Nate Smith 2015-05-30 14:00:03 -04:00
parent eaff062895
commit badf9cad95
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ Use a middleware callable directly.
$router->add("GET,PUT,DELETE", "/widgets/{id}", function ($request, $response, $next) {
$response = $response->withStatus(200)
->withHeader("Content-type", "text/plain")
->withBody(new \WellRESTed\Message\Stream("It's a bunch of widgets!");
->withBody(new \WellRESTed\Message\Stream("It's a bunch of widgets!"));
return $next($request, $response);
});