docs response: fix redirect for correctness

do we want to check if the body is already set?
master
Jonathan Ong 2013-12-18 23:51:51 -08:00
parent e00f2aee9d
commit 0c024c48a8
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ this.redirect('/login');
this.redirect('http://google.com');
```
To alter the default status of `302` or the response
body simply assign before and re-assign after this call:
To alter the default status of `302`, simply assign the status
before or after this call. To alter the body, assign it after this call:
```js
this.status = 301;