diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js index adf6b1da6288..c49033437165 100644 --- a/lib/internal/http2/compat.js +++ b/lib/internal/http2/compat.js @@ -625,7 +625,7 @@ class Http2ServerResponse extends Stream { if ((state.closed || state.ending) && state.headRequest === stream.headRequest) { - return false; + return this; } if (typeof chunk === 'function') {