Node.js: ServerResponse.flushHeaders() implemented.
This closes #1006 issue on GitHub. Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
This commit is contained in:
7
test/node/flush_headers/app.js
Normal file
7
test/node/flush_headers/app.js
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
require('http').createServer(function (req, res) {
|
||||
res.setHeader('X-Header', 'blah');
|
||||
res.flushHeaders();
|
||||
res.flushHeaders(); // Should be idempotent.
|
||||
res.end();
|
||||
}).listen(8080);
|
||||
Reference in New Issue
Block a user