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

Error: Can't set headers after they are sent to the client #243

Open
Code0987 opened this issue Apr 21, 2020 · 0 comments
Open

Error: Can't set headers after they are sent to the client #243

Code0987 opened this issue Apr 21, 2020 · 0 comments

Comments

@Code0987
Copy link

Code0987 commented Apr 21, 2020

https://github.com/Angular-RU/angular-universal-starter/blob/d0b4b2a05a9d32c52562cf364261669bffde873c/server.ts#L61

The above code can cause express error Error: Can't set headers after they are sent to the client in some cases.

I think next() was still called even after res.redirect calls happened, not sure if it is intended.

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

No branches or pull requests

1 participant