From d92a3c371fad557b334b59afb1a882e5f506a617 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Sat, 12 Apr 2014 00:23:11 +0200 Subject: [PATCH 1/2] Update index.md --- docs/api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/index.md b/docs/api/index.md index 8b7d82d..9bcc42d 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -34,7 +34,7 @@ app.listen(3000); The following example responds with "Hello World", however first the request flows through the `x-response-time` and `logging` middleware to mark when the request started, then continue - to yield control through the to the response middleware. When a middleware invokes `yield next` + to yield control through the response middleware. When a middleware invokes `yield next` the function suspends and passes control to the next middleware defined. After there are no more middleware to execute downstream, the stack will unwind and each middleware is resumed to perform its upstream behaviour. From b7a747fc715fce67cc3b68d3ecc4278dbfdef176 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Sat, 12 Apr 2014 00:29:33 +0200 Subject: [PATCH 2/2] Fix typo in request api documentation. --- docs/api/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/request.md b/docs/api/request.md index 9f39043..065d29b 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -73,7 +73,7 @@ var ct = this.request.type; // => "image/png" ``` -### res.charset +### req.charset Get request charset when present, or `undefined`: