summaryrefslogtreecommitdiffhomepage
path: root/test/node/has_header/app.js
blob: eff7f4ffe55a009f24274f49d4593e450c54ac81 (plain) (blame)
1
2
3
4
5
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);