Skip to content

Only automatically set content-length header on HTTP/2 HttpServerResponse when headers haven't been sent #2233

@vietj

Description

@vietj

currently doing:

resp.write("foo").end("bar")

sets the content-length=3 header on the response (which is not sent)

but that's incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions