summaryrefslogtreecommitdiffhomepage
path: root/test/node/write_before_write_head/app.js
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-12-25 16:35:35 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-12-25 16:35:35 +0300
commitd625691ff45bd6f352a504694629af2407a7d1a1 (patch)
treef07e4e6ac903cde472f277b74d1538a725adcafe /test/node/write_before_write_head/app.js
parentf57e729a119660182d333f513b70b78177eb2b62 (diff)
downloadunit-d625691ff45bd6f352a504694629af2407a7d1a1.tar.gz
unit-d625691ff45bd6f352a504694629af2407a7d1a1.tar.bz2
Tests: test_node_application_write_before_writeHead reworked.
Added res.end() call in application and response status check. Also, renamed to test_node_application_write_before_write_head.
Diffstat (limited to 'test/node/write_before_write_head/app.js')
-rwxr-xr-xtest/node/write_before_write_head/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/node/write_before_write_head/app.js b/test/node/write_before_write_head/app.js
index 9fe3a58d..6e3fb9a9 100755
--- a/test/node/write_before_write_head/app.js
+++ b/test/node/write_before_write_head/app.js
@@ -3,4 +3,5 @@
require('unit-http').createServer(function (req, res) {
res.write('blah');
res.writeHead(200, {'Content-Type': 'text/plain'});
+ res.end();
}).listen(7080);