Removed content negotiation of Prometheus as requested by @banks

pull/4016/head
Pierre Souchay 2018-04-24 16:28:30 +02:00
parent a680c8e91b
commit 62a68a008d
1 changed files with 0 additions and 3 deletions

View File

@ -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
}