Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Calling write() after calling end() not raising an error #7477

@luiscvega

Description

@luiscvega

According to docs, the code below should raise an error.

"Calling write() after calling end() will raise an error." (http://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback)

var http = require("http");

http.createServer(function (req, res) {
  res.write("This should write.");
  res.end();
  res.write("This should raise an error but it does not.");
}).listen(3000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions