From 2ae1e73661260d47e0269752f2fa02dd7f105bd9 Mon Sep 17 00:00:00 2001 From: Bojan Kucera Date: Sat, 7 Jun 2025 17:00:56 -0400 Subject: [PATCH] working on proxy --- libs/http/src/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/http/src/client.ts b/libs/http/src/client.ts index 700b4c8..2f312c5 100644 --- a/libs/http/src/client.ts +++ b/libs/http/src/client.ts @@ -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);