diff options
author | cjihrig <cjihrig@gmail.com> | 2017-02-07 12:47:11 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-02-09 12:38:06 -0500 |
commit | a4bb9fdb893c8f2c36a6b77862e29b2608e080c2 (patch) | |
tree | 3edd4030e6a2e43bffcca32057cc45d79bf08dec /deps | |
parent | c239581e64668946cc4e95f126dc55912a2bd527 (diff) | |
download | android-node-v8-a4bb9fdb893c8f2c36a6b77862e29b2608e080c2.tar.gz android-node-v8-a4bb9fdb893c8f2c36a6b77862e29b2608e080c2.tar.bz2 android-node-v8-a4bb9fdb893c8f2c36a6b77862e29b2608e080c2.zip |
http: include provided status code in range error
ServerResponse#writeHead() coerces the user provided status code
to a number and then performs a range check. If the check fails,
a range error is thrown. The coerced status code is included in
the error message. This commit uses the user provided status code
instead.
PR-URL: https://github.com/nodejs/node/pull/11221
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps')
0 files changed, 0 insertions, 0 deletions