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