Skip to content

Commit

Permalink
docs: update return types for req.accept*()
Browse files Browse the repository at this point in the history
closes #2663
  • Loading branch information
ioncreature authored and dougwilson committed Jun 19, 2015
1 parent 4b70375 commit fce3d14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ req.header = function(name){
* // => "json"
*
* @param {String|Array} type(s)
* @return {String}
* @return {String|Array|Boolean}
* @api public
*/

Expand All @@ -111,7 +111,7 @@ req.accepts = function(){
* Check if the given `encoding`s are accepted.
*
* @param {String} ...encoding
* @return {Boolean}
* @return {String|Array}
* @api public
*/

Expand All @@ -128,7 +128,7 @@ req.acceptsEncoding = deprecate.function(req.acceptsEncodings,
* otherwise you should respond with 406 "Not Acceptable".
*
* @param {String} ...charset
* @return {Boolean}
* @return {String|Array}
* @api public
*/

Expand All @@ -145,7 +145,7 @@ req.acceptsCharset = deprecate.function(req.acceptsCharsets,
* otherwise you should respond with 406 "Not Acceptable".
*
* @param {String} ...lang
* @return {Boolean}
* @return {String|Array}
* @api public
*/

Expand Down

0 comments on commit fce3d14

Please sign in to comment.