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