diff options
author | Robert Nagy <ronagy@icloud.com> | 2018-11-13 23:33:14 +0100 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2019-03-12 20:32:35 +0100 |
commit | 90fdf1b0d3811f5e1163d81a403b7e7071d279e5 (patch) | |
tree | 62b011ebb7dce8dc0f4719f8de7950a6c297ab5a /lib/internal/http2/compat.js | |
parent | 2a7da11ed81a833bf070e706441a558c4d7b957c (diff) | |
download | android-node-v8-90fdf1b0d3811f5e1163d81a403b7e7071d279e5.tar.gz android-node-v8-90fdf1b0d3811f5e1163d81a403b7e7071d279e5.tar.bz2 android-node-v8-90fdf1b0d3811f5e1163d81a403b7e7071d279e5.zip |
http2: `Http2ServerResponse.end()` should always return self
PR-URL: https://github.com/nodejs/node/pull/24346
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/internal/http2/compat.js')
-rw-r--r-- | lib/internal/http2/compat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js index cad6efc733..551c9f1efa 100644 --- a/lib/internal/http2/compat.js +++ b/lib/internal/http2/compat.js @@ -648,7 +648,7 @@ class Http2ServerResponse extends Stream { if ((state.closed || state.ending) && state.headRequest === stream.headRequest) { - return false; + return this; } if (typeof chunk === 'function') { |