From e2cd1f02caaa4963acdb11958793559566fff5c5 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Wed, 20 Nov 2013 18:06:45 -0800 Subject: [PATCH] docs: req.accepts(): throw a 406 --- docs/api/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/request.md b/docs/api/request.md index 0d0474c..a36c999 100644 --- a/docs/api/request.md +++ b/docs/api/request.md @@ -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); } ```