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
This commit is contained in:
parent
785aba879c
commit
e56f442222
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue