Fix https in InfluxDB output (#3976)
This commit is contained in:
committed by
Daniel Nelson
parent
559ad1fcdc
commit
f70c3b3382
@@ -418,6 +418,7 @@ func makeWriteURL(loc *url.URL, db, rp, consistency string) string {
|
|||||||
u.Host = "127.0.0.1"
|
u.Host = "127.0.0.1"
|
||||||
u.Path = "/write"
|
u.Path = "/write"
|
||||||
case "http":
|
case "http":
|
||||||
|
case "https":
|
||||||
u.Path = path.Join(u.Path, "write")
|
u.Path = path.Join(u.Path, "write")
|
||||||
}
|
}
|
||||||
u.RawQuery = params.Encode()
|
u.RawQuery = params.Encode()
|
||||||
@@ -432,6 +433,7 @@ func makeQueryURL(loc *url.URL) string {
|
|||||||
u.Host = "127.0.0.1"
|
u.Host = "127.0.0.1"
|
||||||
u.Path = "/query"
|
u.Path = "/query"
|
||||||
case "http":
|
case "http":
|
||||||
|
case "https":
|
||||||
u.Path = path.Join(u.Path, "query")
|
u.Path = path.Join(u.Path, "query")
|
||||||
}
|
}
|
||||||
return u.String()
|
return u.String()
|
||||||
|
|||||||
Reference in New Issue
Block a user