summaryrefslogtreecommitdiff
path: root/lib/internal/http2/compat.js
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2018-11-13 23:33:14 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-12 20:32:35 +0100
commit90fdf1b0d3811f5e1163d81a403b7e7071d279e5 (patch)
tree62b011ebb7dce8dc0f4719f8de7950a6c297ab5a /lib/internal/http2/compat.js
parent2a7da11ed81a833bf070e706441a558c4d7b957c (diff)
downloadandroid-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.js2
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') {