From 0c12afbf6a591c54236331219770836c931abf45 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Thu, 18 Apr 2019 19:27:12 +0300 Subject: Tests: using low-case header names in Node.js tests. --- test/node/has_header/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/node/has_header/app.js') diff --git a/test/node/has_header/app.js b/test/node/has_header/app.js index 040f551e..eff7f4ff 100755 --- a/test/node/has_header/app.js +++ b/test/node/has_header/app.js @@ -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); -- cgit