From e56f4422229d646ef27389dbb133f34c0e4e7cc4 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 14 Feb 2014 09:40:58 -0800 Subject: [PATCH] refactor request docs to use this.request maybe we should do this with all of them, but then we might need a section showing ctx.* stuff, people might miss the aliasing all together --- docs/api/request.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/request.md b/docs/api/request.md index a586cef..9f39043 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -69,7 +69,7 @@ Get request `Content-Type` void of parameters such as "charset". ```js -var ct = this.type; +var ct = this.request.type; // => "image/png" ``` @@ -78,7 +78,7 @@ var ct = this.type; Get request charset when present, or `undefined`: ```js -this.charset +this.request.charset // => "utf-8" ```