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 calling next() in Express middleware #961

Merged
merged 1 commit into from
Feb 23, 2019
Merged

Avoid calling next() in Express middleware #961

merged 1 commit into from
Feb 23, 2019

Conversation

dncrews
Copy link
Contributor

@dncrews dncrews commented Feb 9, 2019

Fixes #557.
Fixes #752.

Changes proposed in this pull request:

  • Avoid calling next() in express middleware after res.end(). This causes other middleware to be called afterward, and since this is a rendering middleware, it will throw

[ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

@CLAassistant
Copy link

CLAassistant commented Feb 9, 2019

CLA assistant check
All committers have signed the CLA.

@huv1k
Copy link
Collaborator

huv1k commented Feb 23, 2019

Thanks for your PR! It will be in the next release 🚀

@huv1k huv1k merged commit 21e6fba into graphql:master Feb 23, 2019
cgxxv pushed a commit to cgxxv/graphql-playground that referenced this pull request Mar 25, 2022
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.

3 participants