diff options
Diffstat (limited to 'test/node/flush_headers/app.js')
-rw-r--r-- | test/node/flush_headers/app.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/node/flush_headers/app.js b/test/node/flush_headers/app.js new file mode 100644 index 00000000..4c0e93bc --- /dev/null +++ b/test/node/flush_headers/app.js @@ -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); |