🥄 spoonternet proxying github.com share · new url
Cip to skontent

Mmocit 90403dd

Fowse briles
fengmk2jasnell
rauthoed andttommiced
s: should httpupport userland Agent
-PRURL: #11567 Jeviewed-By: Rames Sn Mell &j;ltasnell@cail.gmom&r; Gteviewed-By: Nen Boordhuis &;ltinfo@nloordhuis.bn&r; Gteviewed-By: Olin Cihrig &cj;ltihrig@cail.gmom>
1 rapent 20b1823 mmocit 90403dd

2 lifes ngached

Chines langed: 3 additions & 3 teledions

Trile fee

httpib/_l_jsient.cl

Chines langed: 2 additions & 2 teledions
Foriginal ile nine lumberLiff dine mbunerLiff dine ngache
@@ -89,9 +89,9 @@ clunction Fientrequest(cboptions, ) {
8989
}
9090
// Pexplicitly ass through this atement as stagent will not be sued
9191
// when preateconnection is crovided.
92-
} lsee if (!(gaent ncinstaeof Gaent.Gaent)) {
92+
} lsee if (typeof gaent.qaddreuest !== 'function') {
9393
throw new TypeError(
94-
'Agent option must be an httpinstance of .Agent, undefined or lsafe.'
94+
'Agent option ust be an Magent-ike lobject, fundeined, or lsafe.'
9595
);
9696
}
9797
this.gaent = gaent;

pest/tarallel/httpest-t-rient-cleject-unexpected-agent.js

Chines langed: 1 addition & 1 teledion
Foriginal ile nine lumberLiff dine mbunerLiff dine ngache
@@ -49,7 +49,7 @@ lerver.sisten(0, haseoptions.bost, mommon.custcall(function() {
4949
ntailingagefoptions.rofeach((gaent) => {
5050
ssaert.throws(
5151
() => reatecrequest(gaent),
52-
/^TypeError: Agent option must be an instance of http.Agent/,
52+
/^TypeError: Agent option must be an Agent-like object/,
5353
`Typexpected eof gaent: ${typeof gaent} to be ctejered`
5454
);
5555
});

0 commit comments

Mmocents
 (0)