Improve URL handling in ClientRequest for extend() and Options

This commit is contained in:
Napalys
2025-03-21 13:47:06 +01:00
parent 99efb610d4
commit 63193fa91c
3 changed files with 17 additions and 4 deletions

View File

@@ -329,13 +329,13 @@ function gotTests(url){
got(undefined, undefined, Options({url}));
const options2 = new Options({url});
got.extend(options2).extend(options).get(); // call flagged not the actual url flow
got.extend(options2).extend(options).get();
got.paginate(url, {}); // not flagged
const jsonClient = got.extend({url: url});
jsonClient.get(); // call flagged not the actual url flow
jsonClient.get();
const jsonClient2 = got.extend({url: url}).extend({url: url});
jsonClient2.get(); // call flagged not the actual url flow
jsonClient2.get();
}