From 3c014cacc0547150b0dc24f7a5c36c32e3f7b513 Mon Sep 17 00:00:00 2001 From: AsafMah Date: Wed, 27 Apr 2022 11:37:12 +0300 Subject: [PATCH] Support port in http host (#93) --- kusto/conn.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kusto/conn.go b/kusto/conn.go index 82f2af38..8f8e61ba 100644 --- a/kusto/conn.go +++ b/kusto/conn.go @@ -55,9 +55,9 @@ func newConn(endpoint string, auth Authorization) (*conn, error) { c := &conn{ auth: auth.Authorizer, - endMgmt: &url.URL{Scheme: "https", Host: u.Hostname(), Path: "/v1/rest/mgmt"}, - endQuery: &url.URL{Scheme: "https", Host: u.Hostname(), Path: "/v2/rest/query"}, - streamQuery: &url.URL{Scheme: "https", Host: u.Hostname(), Path: "/v1/rest/ingest/"}, + endMgmt: &url.URL{Scheme: "https", Host: u.Host, Path: "/v1/rest/mgmt"}, + endQuery: &url.URL{Scheme: "https", Host: u.Host, Path: "/v2/rest/query"}, + streamQuery: &url.URL{Scheme: "https", Host: u.Host, Path: "/v1/rest/ingest/"}, client: &http.Client{}, }