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 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.