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.
Write() after end() should raise an error? #8814
Closed
Description
I was browsing the docs and found this:
Calling write() after calling end() will raise an error.
But, on branch v0.10, this code does nothing:
var http = require('http');
var server = http.createServer(function(req, res){
res.write('hi');
res.end();
res.write('hi again');
});
server.listen(8080, function(){
console.log('initialized');
});
This is a known bug or an expected behavior?