From 1654418c93fc0d84984d90e6e56865e224aeede4 Mon Sep 17 00:00:00 2001 From: frikky Date: Thu, 17 Mar 2022 23:42:51 +0100 Subject: [PATCH] Removed custom transport for cloud actions --- backend/go-app/main.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index a8b52797..e47dbbbf 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -2262,10 +2262,11 @@ func executeCloudAction(action shuffle.CloudSyncJob, apikey string) error { return err } - transport := http.DefaultTransport.(*http.Transport).Clone() - client := &http.Client{ - Transport: transport, - } + //transport := http.DefaultTransport.(*http.Transport).Clone() + //client := &http.Client{ + // Transport: transport, + //} + client := &http.Client{} syncUrl := fmt.Sprintf("%s/api/v1/cloud/sync/handle_action", syncUrl) req, err := http.NewRequest( @@ -3810,11 +3811,11 @@ func runInitEs(ctx context.Context) { httpProxy := os.Getenv("HTTP_PROXY") if len(httpProxy) > 0 { - log.Printf("Running with HTTP proxy %s (env: HTTP_PROXY)", httpProxy) + log.Printf("[INFO] Running with HTTP proxy %s (env: HTTP_PROXY)", httpProxy) } httpsProxy := os.Getenv("HTTPS_PROXY") if len(httpsProxy) > 0 { - log.Printf("Running with HTTPS proxy %s (env: HTTPS_PROXY)", httpsProxy) + log.Printf("[INFO] Running with HTTPS proxy %s (env: HTTPS_PROXY)", httpsProxy) } defaultEnv := os.Getenv("ORG_ID")