summaryrefslogtreecommitdiffhomepage
path: root/test/node/has_header/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/node/has_header/app.js')
-rwxr-xr-xtest/node/has_header/app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/node/has_header/app.js b/test/node/has_header/app.js
new file mode 100755
index 00000000..040f551e
--- /dev/null
+++ b/test/node/has_header/app.js
@@ -0,0 +1,6 @@
+#!/usr/bin/env node
+
+require('unit-http').createServer(function (req, res) {
+ res.setHeader('X-Has-Header', res.hasHeader(req['headers']['X-Header']) + '');
+ res.end();
+}).listen(7080);