Skip to content

Commit

Permalink
Removing authentication from the /ping route to match influxdb (#5316)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffAshton authored and danielnelson committed Jan 25, 2019
1 parent 7a229e2 commit 4ca0a04
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 4ca0a04

Please sign in to comment.