Skip to content

Commit

Permalink
Removing authentication from the /ping route to match influxdb (influ…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffAshton authored and bitcharmer committed Oct 18, 2019
1 parent 6252140 commit 9846984
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/inputs/influxdb_listener/http_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9846984

Please sign in to comment.