diff --git a/lib/request.js b/lib/request.js index 372a9915e9..03476fe4c8 100644 --- a/lib/request.js +++ b/lib/request.js @@ -169,9 +169,8 @@ req.acceptsCharsets = function(){ * @public */ -req.acceptsLanguages = function(){ - var accept = accepts(this); - return accept.languages.apply(accept, arguments); +req.acceptsLanguages = function(...languages) { + return accepts(this).languages(...languages); }; /**