docs response: fix redirect for correctness
do we want to check if the body is already set?
This commit is contained in:
parent
e00f2aee9d
commit
0c024c48a8
1 changed files with 2 additions and 2 deletions
|
@ -202,8 +202,8 @@ this.redirect('/login');
|
||||||
this.redirect('http://google.com');
|
this.redirect('http://google.com');
|
||||||
```
|
```
|
||||||
|
|
||||||
To alter the default status of `302` or the response
|
To alter the default status of `302`, simply assign the status
|
||||||
body simply assign before and re-assign after this call:
|
before or after this call. To alter the body, assign it after this call:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
this.status = 301;
|
this.status = 301;
|
||||||
|
|
Loading…
Reference in a new issue