We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cde0f1 commit 581cac8Copy full SHA for 581cac8
lib/egg.js
@@ -312,6 +312,14 @@ class EggApplication extends EggCore {
312
}
313
return value;
314
},
315
+ set(_target, prop, value) {
316
+ if (!realClient) {
317
+ options.lookup = options.lookup ?? self.config.httpclient.lookup;
318
+ realClient = new self.HttpClientNext(self, options);
319
+ }
320
+ realClient[prop] = value;
321
+ return true;
322
323
});
324
} else if (this.config.httpclient?.enableDNSCache) {
325
httpClient = new DNSCacheHttpClient(this, options);
0 commit comments