Skip to content

Commit

Permalink
[HAWNG-641] Set text/plain content-type for "refresh" response. No ne…
Browse files Browse the repository at this point in the history
…ed for Content-Security-Policy header (#3442)
  • Loading branch information
grgrzybek committed May 7, 2024
1 parent a31ab20 commit 2bbd30d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
}

private void writeOk(HttpServletResponse response) throws IOException {
response.setContentType("text/html;charset=UTF-8");
response.setContentType("text/plain;charset=UTF-8");
try (OutputStream out = response.getOutputStream()) {
out.write("ok".getBytes());
out.flush();
Expand Down

0 comments on commit 2bbd30d

Please sign in to comment.