Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kabaybodia opened this issue Dec 4, 2019 · 1 comment
Closed

Comments

@kabaybodia
Copy link

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)

@smollweide
Copy link
Owner

Hi @kabaybodia;
done with release 0.25.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants