Skip to content
Snippets Groups Projects
Commit bf915fa7 authored by Jeff Ashton's avatar Jeff Ashton Committed by Daniel Nelson
Browse files

Fix https in InfluxDB output (#3976)

parent c160b562
No related branches found
No related tags found
No related merge requests found
......@@ -418,6 +418,7 @@ func makeWriteURL(loc *url.URL, db, rp, consistency string) string {
u.Host = "127.0.0.1"
u.Path = "/write"
case "http":
case "https":
u.Path = path.Join(u.Path, "write")
}
u.RawQuery = params.Encode()
......@@ -432,6 +433,7 @@ func makeQueryURL(loc *url.URL) string {
u.Host = "127.0.0.1"
u.Path = "/query"
case "http":
case "https":
u.Path = path.Join(u.Path, "query")
}
return u.String()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment