Skip to content

Commit

Permalink
Assign socket to response
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Apr 2, 2016
1 parent 427e60c commit c720a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http.js
Expand Up @@ -503,7 +503,7 @@ Server.prototype._start = function _start(socket) {
// Some conformance to Node.js Https specs allows to distinguish clients:
request.remoteAddress = socket.remoteAddress;
request.remotePort = socket.remotePort;
request.connection = request.socket = socket;
request.connection = request.socket = response.socket = socket;

request.once('ready', self.emit.bind(self, 'request', request, response));
});
Expand Down

0 comments on commit c720a9f

Please sign in to comment.