From 564d7e9a70ee73f3565167684231f32810afb94d Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Mon, 29 Jan 2018 14:42:40 -0500 Subject: [PATCH] http: remove domain specific code Due to some changes to async tracking of http and also in how domains are handled, it's no longer necessary to manually copy domain from req to res in http code. PR-URL: https://github.com/nodejs/node/pull/18477 Refs: https://github.com/nodejs/node/pull/16222 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Khaidi Chu Reviewed-By: Jeremiah Senkpiel --- lib/_http_client.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/_http_client.js b/lib/_http_client.js index 9dea39d0216c80..62eef956b3574e 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -495,12 +495,6 @@ function parserOnIncomingClient(res, shouldKeepAlive) { var socket = this.socket; var req = socket._httpMessage; - // propagate "domain" setting... - if (req.domain && !res.domain) { - debug('setting "res.domain"'); - res.domain = req.domain; - } - debug('AGENT incoming response!'); if (req.res) {