diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2017-11-03 20:04:12 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2017-11-06 18:24:34 +0800 |
commit | 0a84e95cd9293bfcf1e746857921684f0732dd60 (patch) | |
tree | 719f4113cd1c7dad36b324ef075ed069fc2f8b45 /test/parallel/test-http-mutable-headers.js | |
parent | 11a9f36cae0d1e6e11c9f40ec82d9f887aa0a911 (diff) | |
download | node-new-0a84e95cd9293bfcf1e746857921684f0732dd60.tar.gz |
http: improve errors thrown in header validation
PR-URL: https://github.com/nodejs/node/pull/16719
Fixes: https://github.com/nodejs/node/issues/16714
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-mutable-headers.js')
-rw-r--r-- | test/parallel/test-http-mutable-headers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-mutable-headers.js b/test/parallel/test-http-mutable-headers.js index 929a566caf..2473a08eb1 100644 --- a/test/parallel/test-http-mutable-headers.js +++ b/test/parallel/test-http-mutable-headers.js @@ -61,9 +61,9 @@ const s = http.createServer(common.mustCall((req, res) => { common.expectsError( () => res.setHeader('someHeader'), { - code: 'ERR_MISSING_ARGS', + code: 'ERR_HTTP_INVALID_HEADER_VALUE', type: TypeError, - message: 'The "value" argument must be specified' + message: 'Invalid value "undefined" for header "someHeader"' } ); common.expectsError( |