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

Avoid 'headers send twice', use body parser json handling #3

Merged
merged 1 commit into from May 21, 2016

Conversation

yamsellem
Copy link
Contributor

In every controller, errors are not returned directly, so a 'headers send twice' error can append.
Returning once error avoid this.

The json body parsing needs to be added to handle bodies in express, I guess.

ps. I've also add to update the mongoose version to 4.x, but this is more related to my installation (it's not in this pull request), anyway, upgrading works directly

double ps. thanks a lot for this (very very) detailed explainations

@scottksmith95 scottksmith95 merged commit b6b9990 into scottksmith95:master May 21, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants