Skip to content

http: calling ServerResponse.writeHead multiple times? #36721

Closed
@ronag

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    httpIssues or 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