File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,8 @@ class Http2ServerRequest extends Readable {
302
302
}
303
303
304
304
get complete ( ) {
305
- return this . _readableState . ended ||
305
+ return this [ kAborted ] ||
306
+ this . _readableState . ended ||
306
307
this [ kState ] . closed ||
307
308
this [ kStream ] . destroyed ;
308
309
}
Original file line number Diff line number Diff line change @@ -10,8 +10,10 @@ const assert = require('assert');
10
10
const server = h2 . createServer ( common . mustCall ( function ( req , res ) {
11
11
req . on ( 'aborted' , common . mustCall ( function ( ) {
12
12
assert . strictEqual ( this . aborted , true ) ;
13
+ assert . strictEqual ( this . complete , true ) ;
13
14
} ) ) ;
14
15
assert . strictEqual ( req . aborted , false ) ;
16
+ assert . strictEqual ( req . complete , false ) ;
15
17
res . write ( 'hello' ) ;
16
18
server . close ( ) ;
17
19
} ) ) ;
You can’t perform that action at this time.
0 commit comments