docs: req.accepts(): throw a 406
This commit is contained in:
parent
1d38d4acd1
commit
e2cd1f02ca
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ switch (this.accepts('json', 'html', 'text')) {
|
||||||
case 'json': break;
|
case 'json': break;
|
||||||
case 'html': break;
|
case 'html': break;
|
||||||
case 'text': break;
|
case 'text': break;
|
||||||
case false: break;
|
default: this.throw(406);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue