Skip to content

http: Stream#write with an empty buffer does not call callback #22066

Closed
@RubenVerborgh

Description

@RubenVerborgh

When writing an empty buffer, Stream#write does not call the callback: https://github.com/nodejs/node/blob/v10.7.0/lib/_http_outgoing.js#L608

Is this intended? If so, this should probably be mentioned explicitly in the documentation.
If not, we might want to fix this.

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