summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/_http_server.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js
index bb9e654668..3d114d8711 100644
--- a/lib/_http_server.js
+++ b/lib/_http_server.js
@@ -363,8 +363,7 @@ function connectionListenerInternal(server, socket) {
// Ensure that the server property of the socket is correctly set.
// See https://github.com/nodejs/node/issues/13435
- if (socket.server === null)
- socket.server = server;
+ socket.server = server;
// If the user has added a listener to the server,
// request, or response, then it's their responsibility.