diff options
author | Gibson Fahnestock <gib@uk.ibm.com> | 2016-11-05 12:59:49 +0000 |
---|---|---|
committer | Gibson Fahnestock <gib@uk.ibm.com> | 2016-11-05 13:02:07 +0000 |
commit | a99b441c2c102d84f7e1fb6d73c0cfa6b4dc0e58 (patch) | |
tree | c9ba5d61e9e1757c3fb3c3dc47b482e8f2e10af8 /test/parallel/test-http-header-obstext.js | |
parent | 3e6cc607b0346e9428db9d72abe04c2aa7bfdb1e (diff) | |
download | android-node-v8-a99b441c2c102d84f7e1fb6d73c0cfa6b4dc0e58.tar.gz android-node-v8-a99b441c2c102d84f7e1fb6d73c0cfa6b4dc0e58.tar.bz2 android-node-v8-a99b441c2c102d84f7e1fb6d73c0cfa6b4dc0e58.zip |
test: update http-header-obstext
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-http-header-obstext.js')
-rw-r--r-- | test/parallel/test-http-header-obstext.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/parallel/test-http-header-obstext.js b/test/parallel/test-http-header-obstext.js index b3422cf0ce..8762c75320 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(); })); }); |