Fixed Prometheus socket getting disconnected after each request.

This commit is contained in:
Thulinma 2016-05-03 15:12:02 +02:00
parent 0d17a511ef
commit 9498f87cc3

View file

@ -171,11 +171,11 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
if (conf.getString("prometheus").size()){
if (H.url == "/"+Controller::conf.getString("prometheus")){
handlePrometheus(H, conn, PROMETHEUS_TEXT);
break;
continue;
}
if (H.url == "/"+Controller::conf.getString("prometheus")+".json"){
handlePrometheus(H, conn, PROMETHEUS_JSON);
break;
continue;
}
}
JSON::Value Response;