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

Redirect: do not call next after res.end() #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 5, 2018

  1. Redirect: do not call next after res.end()

    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.
    UltCombo authored Feb 5, 2018
    Configuration menu
    Copy the full SHA
    4a77bfb View commit details
    Browse the repository at this point in the history