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

Chunking vs Body-Parser #28

Open
baa1i opened this issue Apr 26, 2019 · 0 comments
Open

Chunking vs Body-Parser #28

baa1i opened this issue Apr 26, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@baa1i
Copy link

baa1i commented Apr 26, 2019

There is nothing wrong with chunking data manually in your src/registerGull.js file. We found that body-parser took care of that in literally two line.

app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json())

Have a look at how we have done it in our project on lines 14 and 15.

Screen Shot 2019-04-26 at 10 38 40

Also here is the documentation for body-parse:
https://www.npmjs.com/package/body-parser

@baa1i baa1i added the enhancement New feature or request label Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants