Fix grafana translation not working properly

feature/traccar-sync
Mohamed Rashd 3 years ago
parent 37e598774e
commit 6d7f082a6b

@ -48,6 +48,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.nio.charset.StandardCharsets;
@MultipartConfig
@WebServlet(
@ -150,6 +151,7 @@ public class GrafanaHandler extends HttpServlet {
resp.setContentType(contentType);
resp.setStatus(grafanaAPIResponse.getCode());
addXFrameOptionsHeaders(resp);
resp.setCharacterEncoding(StandardCharsets.UTF_8.name());
resp.getWriter().print(grafanaAPIResponse.getData());
}

@ -84,7 +84,7 @@ public class HandlerConstants {
public static final String WSS_PROTOCOL = "wss";
public static final String WS_PROTOCOL = "ws";
public static final String REMOTE_SESSION_CONTEXT = "/remote/session/clients";
public static final String GRAFANA_API = "/api/device-mgt/v1.0/reports/grafana";
public static final String GRAFANA_API = "/api/grafana-mgt/v1.0";
public static final String IOT_CORE_HOST_ENV_VAR = "iot.core.host";
public static final String IOT_CORE_HTTP_PORT_ENV_VAR = "iot.core.http.port";

Loading…
Cancel
Save