Removing authentication from the /ping route to match influxdb (#5316)
This commit is contained in:
parent
7a229e25a6
commit
4ca0a04df1
|
@ -229,9 +229,7 @@ func (h *HTTPListener) ServeHTTP(res http.ResponseWriter, req *http.Request) {
|
||||||
h.PingsRecv.Incr(1)
|
h.PingsRecv.Incr(1)
|
||||||
defer h.PingsServed.Incr(1)
|
defer h.PingsServed.Incr(1)
|
||||||
// respond to ping requests
|
// respond to ping requests
|
||||||
h.AuthenticateIfSet(func(res http.ResponseWriter, req *http.Request) {
|
res.WriteHeader(http.StatusNoContent)
|
||||||
res.WriteHeader(http.StatusNoContent)
|
|
||||||
}, res, req)
|
|
||||||
default:
|
default:
|
||||||
defer h.NotFoundsServed.Incr(1)
|
defer h.NotFoundsServed.Incr(1)
|
||||||
// Don't know how to respond to calls to other endpoints
|
// Don't know how to respond to calls to other endpoints
|
||||||
|
|
Loading…
Reference in New Issue