Skip to content

Conversation

@UltCombo
Copy link

@UltCombo UltCombo commented Feb 5, 2018

Express applications may have final handlers (e.g. to serve 404 pages or log errors), calling next after res.end will cause these handlers to be triggered when they should not.

If the application has a default page handler (common in SPAs with client-side routing) or 404 page, calling next after res.end will throw a "headers already sent" error.

Express applications may have final handlers (e.g. to serve 404 pages or log errors), calling `next` after `res.end` will cause these handlers to be triggered when they should not.

If the application has a default page handler (common in SPAs with client-side routing) or 404 page, calling `next` after `res.end` will throw a "headers already sent" error.
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.

1 participant