docs: req.accepts(): throw a 406

This commit is contained in:
Jonathan Ong 2013-11-20 18:06:45 -08:00
parent 1d38d4acd1
commit e2cd1f02ca

View file

@ -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);
} }
``` ```