Skip to content

Commit 935eac1

Browse files
apapirovskiMylesBorins
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: #18477 Refs: #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 0d390f7 commit 935eac1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/_http_client.js

-6
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,6 @@ function parserOnIncomingClient(res, shouldKeepAlive) {
495495
var socket = this.socket;
496496
var req = socket._httpMessage;
497497

498-
// propagate "domain" setting...
499-
if (req.domain && !res.domain) {
500-
debug('setting "res.domain"');
501-
res.domain = req.domain;
502-
}
503-
504498
debug('AGENT incoming response!');
505499

506500
if (req.res) {

0 commit comments

Comments
 (0)