Tests: using low-case header names in Node.js tests.
This commit is contained in:
@@ -1,6 +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.setHeader('X-Has-Header', res.hasHeader(req.headers['x-header']) + '');
|
||||
res.end();
|
||||
}).listen(7080);
|
||||
|
||||
Reference in New Issue
Block a user