diff --git a/lib/request.js b/lib/request.js index 69990da39b6..7ececc74e0f 100644 --- a/lib/request.js +++ b/lib/request.js @@ -83,16 +83,13 @@ req.header = function header(name) { }; /** - * To do: update docs. - * * Check if the given `type(s)` is acceptable, returning - * the best match when true, otherwise `undefined`, in which + * the best match when true, otherwise `false`, in which * case you should respond with 406 "Not Acceptable". * * The `type` value may be a single MIME type string * such as "application/json", an extension name - * such as "json", a comma-delimited list such as "json, html, text/plain", - * an argument list such as `"json", "html", "text/plain"`, + * such as "json", an argument list such as `"json", "html", "text/plain"`, * or an array `["json", "html", "text/plain"]`. When a list * or array is given, the _best_ match, if any is returned. * @@ -120,7 +117,6 @@ req.header = function header(name) { * // Accept: text/*;q=.5, application/json * req.accepts(['html', 'json']); * req.accepts('html', 'json'); - * req.accepts('html, json'); * // => "json" * * @param {String|Array} type(s)