mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Removed content negotiation of Prometheus as requested by @banks
This commit is contained in:
parent
a680c8e91b
commit
62a68a008d
@ -79,9 +79,6 @@ func (s *HTTPServer) AgentSelf(resp http.ResponseWriter, req *http.Request) (int
|
||||
|
||||
// enablePrometheusOutput will look for Prometheus mime-type or format Query parameter the same way as Nomad
|
||||
func enablePrometheusOutput(req *http.Request) bool {
|
||||
if contentType := req.Header.Get("Accept"); contentType == "text/plain; version=0.0.4; charset=utf-8" {
|
||||
return true
|
||||
}
|
||||
if format := req.URL.Query().Get("format"); format == "prometheus" {
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user