From bf915fa79c127e57044e490fe8b52f32babec2c4 Mon Sep 17 00:00:00 2001
From: Jeff Ashton <JeffAshton@users.noreply.github.com>
Date: Thu, 5 Apr 2018 13:50:32 -0400
Subject: [PATCH] Fix https in InfluxDB output (#3976)

---
 plugins/outputs/influxdb/http.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/outputs/influxdb/http.go b/plugins/outputs/influxdb/http.go
index f32054f4..4f3d57e6 100644
--- a/plugins/outputs/influxdb/http.go
+++ b/plugins/outputs/influxdb/http.go
@@ -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()
-- 
GitLab