blob: 578b72a7251a86c36b2a54edbf1389571e45382d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env node
require('unit-http').createServer(function (req, res) {
res.setHeader('X-Header', 'test');
res.setHeader('Was-Header', res.hasHeader('X-Header').toString());
res.removeHeader(req['headers']['X-Remove']);
res.setHeader('Has-Header', res.hasHeader('X-Header').toString());
res.end();
}).listen(7080);
|