Fix https in InfluxDB output (#3976)

(cherry picked from commit bf915fa79c)
This commit is contained in:
Jeff Ashton 2018-04-05 13:50:32 -04:00 committed by Daniel Nelson
parent 2a9198cea6
commit 6332ede542
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 2 additions and 0 deletions

View File

@ -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()