working on proxy

This commit is contained in:
Bojan Kucera 2025-06-07 17:00:56 -04:00
parent 3d9eb2ec9b
commit 2ae1e73661

View file

@ -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);