From 4ca0a04df183781260d936b95ed8ced3d626c463 Mon Sep 17 00:00:00 2001 From: Jeff Ashton Date: Fri, 25 Jan 2019 15:57:35 -0500 Subject: [PATCH] Removing authentication from the /ping route to match influxdb (#5316) --- plugins/inputs/influxdb_listener/http_listener.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/inputs/influxdb_listener/http_listener.go b/plugins/inputs/influxdb_listener/http_listener.go index 29f055b53..1de764bfd 100644 --- a/plugins/inputs/influxdb_listener/http_listener.go +++ b/plugins/inputs/influxdb_listener/http_listener.go @@ -229,9 +229,7 @@ func (h *HTTPListener) ServeHTTP(res http.ResponseWriter, req *http.Request) { h.PingsRecv.Incr(1) defer h.PingsServed.Incr(1) // respond to ping requests - h.AuthenticateIfSet(func(res http.ResponseWriter, req *http.Request) { - res.WriteHeader(http.StatusNoContent) - }, res, req) + res.WriteHeader(http.StatusNoContent) default: defer h.NotFoundsServed.Incr(1) // Don't know how to respond to calls to other endpoints