Skip to content

Commit e2a8240

Browse files
apapirovskiMayaLekova
authored andcommitted
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: nodejs#18477 Refs: nodejs#16222 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Khaidi Chu <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent 0453ca5 commit e2a8240

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/_http_client.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,6 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
463463
var socket = this.socket;
464464
var req = socket._httpMessage;
465465

466-
// propagate "domain" setting...
467-
if (req.domain && !res.domain) {
468-
debug('setting "res.domain"');
469-
res.domain = req.domain;
470-
}
471-
472466
debug('AGENT incoming response!');
473467

474468
if (req.res) {

0 commit comments

Comments
 (0)