Fixed Prometheus HTTP clean bug

This commit is contained in:
Thulinma 2017-10-20 13:42:44 +02:00
parent 8e6af4c591
commit 601617cb51

View file

@ -118,10 +118,12 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
if (Controller::prometheus.size()){
if (H.url == "/"+Controller::prometheus){
handlePrometheus(H, conn, PROMETHEUS_TEXT);
H.Clean();
continue;
}
if (H.url == "/"+Controller::prometheus+".json"){
handlePrometheus(H, conn, PROMETHEUS_JSON);
H.Clean();
continue;
}
}