Removing authentication from the /ping route to match influxdb (#5316)

This commit is contained in:
Jeff Ashton 2019-01-25 15:57:35 -05:00 committed by Daniel Nelson
parent 7a229e25a6
commit 4ca0a04df1
1 changed files with 1 additions and 3 deletions

View File

@ -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)
default:
defer h.NotFoundsServed.Incr(1)
// Don't know how to respond to calls to other endpoints