Fixed Prometheus HTTP clean bug
This commit is contained in:
parent
8e6af4c591
commit
601617cb51
1 changed files with 2 additions and 0 deletions
|
@ -118,10 +118,12 @@ int Controller::handleAPIConnection(Socket::Connection & conn){
|
||||||
if (Controller::prometheus.size()){
|
if (Controller::prometheus.size()){
|
||||||
if (H.url == "/"+Controller::prometheus){
|
if (H.url == "/"+Controller::prometheus){
|
||||||
handlePrometheus(H, conn, PROMETHEUS_TEXT);
|
handlePrometheus(H, conn, PROMETHEUS_TEXT);
|
||||||
|
H.Clean();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (H.url == "/"+Controller::prometheus+".json"){
|
if (H.url == "/"+Controller::prometheus+".json"){
|
||||||
handlePrometheus(H, conn, PROMETHEUS_JSON);
|
handlePrometheus(H, conn, PROMETHEUS_JSON);
|
||||||
|
H.Clean();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue