aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/http2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/http2')
-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 23266eb6c2..84630a3717 100644
--- a/lib/internal/http2/compat.js
+++ b/lib/internal/http2/compat.js
@@ -462,7 +462,7 @@ class Http2ServerResponse extends Stream {
// This is compatible with http1 which removes socket reference
// only from ServerResponse but not IncomingMessage
if (this[kState].closed)
- return;
+ return undefined;
const stream = this[kStream];
const proxySocket = stream[kProxySocket];