According to the docs, req.accepts() can be used with an argument list:
// Accept: text/*;q=.5, application/json
req.accepts(['html', 'json']);
req.accepts('html, json');
However, that doesn't seem to be the case. I'm not sure if this is a documentation error or a bug.
According to the docs,
req.accepts()can be used with an argument list:However, that doesn't seem to be the case. I'm not sure if this is a documentation error or a bug.