Skip to content

Commit

Permalink
Support port in http host (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsafMah committed Apr 27, 2022
1 parent b63231b commit 3c014ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kusto/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
}

Expand Down

0 comments on commit 3c014ca

Please sign in to comment.