diff options
Diffstat (limited to 'test/parallel/test-https-host-headers.js')
-rw-r--r-- | test/parallel/test-https-host-headers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-https-host-headers.js b/test/parallel/test-https-host-headers.js index d16afa1600..cc5047bea7 100644 --- a/test/parallel/test-https-host-headers.js +++ b/test/parallel/test-https-host-headers.js @@ -18,10 +18,10 @@ const httpsServer = https.createServer(options, reqHandler); function reqHandler(req, res) { console.log('Got request: ' + req.headers.host + ' ' + req.url); if (req.url === '/setHostFalse5') { - assert.equal(req.headers.host, undefined); + assert.strictEqual(req.headers.host, undefined); } else { - assert.equal(req.headers.host, `localhost:${this.address().port}`, - 'Wrong host header for req[' + req.url + ']: ' + + assert.strictEqual(req.headers.host, `localhost:${this.address().port}`, + 'Wrong host header for req[' + req.url + ']: ' + req.headers.host); } res.writeHead(200, {}); |