Skip to content

req.accepts Should Accept Argument List #1720

@matthewwithanm

Description

@matthewwithanm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions