docs: req.accepts(): throw a 406

master
Jonathan Ong 2013-11-20 18:06:45 -08:00
parent 1d38d4acd1
commit e2cd1f02ca
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ switch (this.accepts('json', 'html', 'text')) {
case 'json': break;
case 'html': break;
case 'text': break;
case false: break;
default: this.throw(406);
}
```