diff options
Diffstat (limited to 'test/node/write_return/app.js')
-rwxr-xr-x | test/node/write_return/app.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/node/write_return/app.js b/test/node/write_return/app.js new file mode 100755 index 00000000..3ae967c6 --- /dev/null +++ b/test/node/write_return/app.js @@ -0,0 +1,6 @@ +#!/usr/bin/env node + +require('unit-http').createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end(res.write('body').toString()); +}).listen(7080); |