aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Nagy <ronagy@icloud.com>2019-07-10 21:59:36 +0200
committerRich Trott <rtrott@gmail.com>2019-07-20 22:04:17 -0700
commitb30dca8d9efcff9d7650e633c20c93ace5e52f36 (patch)
tree19e1fa25afb2f62c043e1b6ad69a86f46e11a213 /lib
parent7a1f33c3946543adb6d8b6163b438d471b9c8b42 (diff)
downloadandroid-node-v8-b30dca8d9efcff9d7650e633c20c93ace5e52f36.tar.gz
android-node-v8-b30dca8d9efcff9d7650e633c20c93ace5e52f36.tar.bz2
android-node-v8-b30dca8d9efcff9d7650e633c20c93ace5e52f36.zip
http2: compat req.complete
PR-URL: https://github.com/nodejs/node/pull/28627 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/http2/compat.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js
index 5169545871..c707c22be9 100644
--- a/lib/internal/http2/compat.js
+++ b/lib/internal/http2/compat.js
@@ -302,7 +302,8 @@ class Http2ServerRequest extends Readable {
}
get complete() {
- return this._readableState.ended ||
+ return this[kAborted] ||
+ this._readableState.ended ||
this[kState].closed ||
this[kStream].destroyed;
}