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) (#3444)

(cherry picked from commit 2bbd30d)
  • Loading branch information
grgrzybek committed May 8, 2024
1 parent 66aafcb commit d13bca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,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 d13bca1

Please sign in to comment.