Skip to content

node-mock-server doesn't parse 'application/json' content type #136

@kabaybodia

Description

@kabaybodia

node-mock-server doesn't parse 'application/json' content type request data

app.use(bodyParser.json());

As a solution might be replacement of: app.use(bodyParser.json());
with: app.use(express.json());
since in the project express version 4.16+ is used (https://medium.com/@mmajdanski/express-body-parser-and-why-may-not-need-it-335803cd048c)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions