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 <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
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)