Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Conversation

@inadarei
Copy link

@inadarei inadarei commented Jan 6, 2013

Calling res.end() does not terminate middleware's execution. Explicit exit from the function is necessary to prevent unwanted side-effects, which can include a "Error: Can't set headers after they are sent." from another (later) middleware.

Fixing a "Error: Can't set headers after they are sent." bug
Calling res.end() does not terminate middleware's execution. Explicit exit from the function is necessary to prevent unwanted side-effect, which can include a "Error: Can't set headers after they are sent." from another (later) middleware.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant