From e2a8240ba0ae01296924995f56f45342632d2e1b 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 ebfd809e21e0a0..9880581082b425 100644 --- a/lib/_http_client.js +++ b/lib/_http_client.js @@ -463,12 +463,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) {