diff options
author | Rich Trott <rtrott@gmail.com> | 2016-08-17 16:14:43 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-08-19 16:30:28 -0700 |
commit | c89b6ee347f0247254fb08999d06301937a965fd (patch) | |
tree | 86c8b742ef2827fdedefd4678e05617dad4ed090 /test/parallel/test-http-response-multiheaders.js | |
parent | 76007079ec866317c0119b1f4526d0f67b3998fc (diff) | |
download | android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.tar.gz android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.tar.bz2 android-node-v8-c89b6ee347f0247254fb08999d06301937a965fd.zip |
test: favor strict equality in http tests
PR-URL: https://github.com/nodejs/node/pull/8151
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-response-multiheaders.js')
-rw-r--r-- | test/parallel/test-http-response-multiheaders.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-response-multiheaders.js b/test/parallel/test-http-response-multiheaders.js index cde9867538..577f401abb 100644 --- a/test/parallel/test-http-response-multiheaders.js +++ b/test/parallel/test-http-response-multiheaders.js @@ -30,12 +30,12 @@ const norepeat = [ const server = http.createServer(function(req, res) { var num = req.headers['x-num']; - if (num == 1) { + if (num === '1') { for (const name of norepeat) { res.setHeader(name, ['A', 'B']); } res.setHeader('X-A', ['A', 'B']); - } else if (num == 2) { + } else if (num === '2') { const headers = {}; for (const name of norepeat) { headers[name] = ['A', 'B']; |