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 <[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]>
  • Loading branch information
gibfahn authored and evanlucas committed Nov 7, 2016
1 parent ed8df17 commit 675a4b2
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 675a4b2

Please sign in to comment.