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/variables/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/node/variables/app.js') diff --git a/test/node/variables/app.js b/test/node/variables/app.js index 968afba5..4ed94d09 100755 --- a/test/node/variables/app.js +++ b/test/node/variables/app.js @@ -11,9 +11,9 @@ require('unit-http').createServer(function (req, res) { res.setHeader('Server-Protocol', req.httpVersion); res.setHeader('Request-Raw-Headers', req.rawHeaders.join()); res.setHeader('Content-Length', Buffer.byteLength(body)); - res.setHeader('Content-Type', req.headers['Content-Type']); - res.setHeader('Custom-Header', req.headers['Custom-Header']); - res.setHeader('Http-Host', req.headers['Host']); + res.setHeader('Content-Type', req.headers['content-type']); + res.setHeader('Custom-Header', req.headers['custom-header']); + res.setHeader('Http-Host', req.headers['host']); res.writeHead(200, {}); res.end(body); }); -- cgit