From a310953f05514d60c9ffb331f3c8554c8a2699af Mon Sep 17 00:00:00 2001 From: Igor Gov Date: Thu, 26 Aug 2021 15:55:05 +0300 Subject: [PATCH] Fixing call to analysis (#248) --- cli/apiserver/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/apiserver/provider.go b/cli/apiserver/provider.go index 24f1b193e..e10c7b130 100644 --- a/cli/apiserver/provider.go +++ b/cli/apiserver/provider.go @@ -77,7 +77,7 @@ func (provider *apiServerProvider) RequestAnalysis(analysisDestination string, s if !provider.isReady { return fmt.Errorf("trying to reach api server when not initialized yet") } - urlPath := fmt.Sprintf("http://%s/api/uploadEntries?dest=%s&interval=%v", provider.url, url.QueryEscape(analysisDestination), sleepIntervalSec) + urlPath := fmt.Sprintf("%s/api/uploadEntries?dest=%s&interval=%v", provider.url, url.QueryEscape(analysisDestination), sleepIntervalSec) u, parseErr := url.ParseRequestURI(urlPath) if parseErr != nil { logger.Log.Fatal("Failed parsing the URL (consider changing the analysis dest URL), err: %v", parseErr)