working on proxy
This commit is contained in:
parent
3d9eb2ec9b
commit
2ae1e73661
1 changed files with 3 additions and 3 deletions
|
|
@ -109,10 +109,10 @@ export class HttpClient {
|
|||
try {
|
||||
|
||||
// const options = this.buildFetchOptions(config, signal);
|
||||
// console.log('Using fetch with proxy:', config.proxy);
|
||||
const options = config.proxy? { proxy: config.proxy.protocol + '://' + config.proxy?.host + ':' + config.proxy?.port } : {}//this.buildGotOptions(config, signal);
|
||||
|
||||
const options = config.proxy? { proxy: config.proxy?.protocol + '://' + config.proxy?.host + ':' + config.proxy?.port } : {}//this.buildGotOptions(config, signal);
|
||||
|
||||
this.logger?.error('Making request with fetch',{url: config.url, options })
|
||||
this.logger?.debug('Making request with fetch: ', { url: config.url, options })
|
||||
|
||||
const response = await fetch(config.url, options);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue