Skip to content

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

Description

@Code0987

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions