Tests: using low-case header names in Node.js tests.

This commit is contained in:
Andrey Zelenkov
2019-04-18 19:27:12 +03:00
parent c6e96647a1
commit 0c12afbf6a
4 changed files with 6 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ var fs = require('fs');
require('unit-http').createServer(function (req, res) {
res.end();
if (req.headers['X-Write-Call']) {
if (req.headers['x-write-call']) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write('blah');
}