Skip to content

http: calling ServerResponse.writeHead multiple times? #36721

Description

@ronag

Looking through the code it seems a bit undefined what happens if writeHead is called multiple times. Especially in the case where the headers have already been sent. I would expect at least the former to error but that does not seem to be the case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues and PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions