From a99b441c2c102d84f7e1fb6d73c0cfa6b4dc0e58 Mon Sep 17 00:00:00 2001 From: Gibson Fahnestock Date: Sat, 5 Nov 2016 12:59:49 +0000 Subject: [PATCH] test: update http-header-obstext PR-URL: https://github.com/nodejs/node/pull/9415 Reviewed-By: Santiago Gimeno Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-http-header-obstext.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-header-obstext.js b/test/parallel/test-http-header-obstext.js index b3422cf0ced181..8762c753206a80 100644 --- a/test/parallel/test-http-header-obstext.js +++ b/test/parallel/test-http-header-obstext.js @@ -1,6 +1,9 @@ 'use strict'; - const common = require('../common'); + +// This test ensures that the http-parser can handle UTF-8 characters +// in the http header. + const http = require('http'); const assert = require('assert'); @@ -12,7 +15,7 @@ server.listen(0, () => { port: server.address().port, headers: {'Test': 'Düsseldorf'} }, common.mustCall((res) => { - assert.equal(res.statusCode, 200); + assert.strictEqual(res.statusCode, 200); server.close(); })); });