Skip to content

Commit

Permalink
fix apache#56
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhaiqing committed Oct 22, 2024
1 parent 2f2feb7 commit cb11fd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ private void metrics(HttpServletResponse response) throws IOException {
StringWriter writer = new StringWriter();
metricsService.metrics(writer);
response.setHeader("Content-Type", "text/plain; version=0.0.4; charset=utf-8");
response.getOutputStream().print(writer.toString());
response.getOutputStream().write(writer.toString().getBytes("utf-8"));
}
}

0 comments on commit cb11fd2

Please sign in to comment.