Skip to content

Commit

Permalink
test: update http-header-obstext
Browse files Browse the repository at this point in the history
PR-URL: #9415

Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
gibfahn authored and Myles Borins committed Nov 22, 2016
1 parent 6fc0f1b commit b91d5e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/parallel/test-http-header-obstext.js
Original file line number Diff line number Diff line change
@@ -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');

Expand All @@ -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();
}));
});

0 comments on commit b91d5e1

Please sign in to comment.