diff options
author | Matteo Collina <hello@matteocollina.com> | 2018-02-14 13:39:05 +0000 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2018-02-19 08:59:47 +0100 |
commit | 3d93f39190ec24284aee6acd0e0214862e651567 (patch) | |
tree | 923c296157ff570544ba85ecff2fd0b0ef553b8e /lib | |
parent | 8118da7430c33fc80a2f60c4a8cb3f568edbb29b (diff) | |
download | android-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.tar.gz android-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.tar.bz2 android-node-v8-3d93f39190ec24284aee6acd0e0214862e651567.zip |
http2: make response.end() return this
PR-URL: https://github.com/nodejs/node/pull/18780
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/http2/compat.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js index 5e6c51377e..9670843176 100644 --- a/lib/internal/http2/compat.js +++ b/lib/internal/http2/compat.js @@ -596,6 +596,8 @@ class Http2ServerResponse extends Stream { this[kFinish](); else stream.end(); + + return this; } destroy(err) { |