Skip to content

Commit b91d5e1

Browse files
gibfahnMyles Borins
authored and
Myles Borins
committed
test: update http-header-obstext
PR-URL: #9415 Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent 6fc0f1b commit b91d5e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/parallel/test-http-header-obstext.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'use strict';
2-
32
const common = require('../common');
3+
4+
// This test ensures that the http-parser can handle UTF-8 characters
5+
// in the http header.
6+
47
const http = require('http');
58
const assert = require('assert');
69

@@ -12,7 +15,7 @@ server.listen(0, () => {
1215
port: server.address().port,
1316
headers: {'Test': 'Düsseldorf'}
1417
}, common.mustCall((res) => {
15-
assert.equal(res.statusCode, 200);
18+
assert.strictEqual(res.statusCode, 200);
1619
server.close();
1720
}));
1821
});

0 commit comments

Comments
 (0)