Skip to content

body-parser limiting requests larger than 100kb #12

@kevinejohn

Description

@kevinejohn

If this library is added to the express router in front of any endpoints it will reject any content-type: application/json requests larger than 100kb because of body-parser default limit. One fix would be to add in a config flag with a custom limit. Another fix would be to only use body-parser on the endpoints that match with this library.

https://github.com/expressjs/body-parser#limit

baseRouter.use(bodyParser.json({ type: 'application/json' }))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions