Skip to content

Commit

Permalink
Enforce Dev UI charset to UTF-8
Browse files Browse the repository at this point in the history
Maybe fixes quarkusio#38650
  • Loading branch information
gsmet committed Feb 7, 2024
1 parent 59e1c2d commit b5e2533
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ public static interface FileExtension {
}

public static interface MimeType {
public static final String HTML = "text/html";
public static final String JS = "text/javascript";
public static final String HTML = "text/html; charset=utf-8";
public static final String JS = "text/javascript; charset=utf-8";
public static final String JSON = "application/json";
public static final String CSS = "text/css";
public static final String PLAIN = "text/plain";
public static final String CSS = "text/css; charset=utf-8";
public static final String PLAIN = "text/plain; charset=utf-8";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ private String getContentType(String filename) {

private static final String CONTENT_TYPE_JAVASCRIPT = "application/javascript";
private static final String CONTENT_TYPE_JSON = "application/json";
private static final String CONTENT_TYPE_HTML = "text/html";
private static final String CONTENT_TYPE_XHTML = "application/xhtml+xml";
private static final String CONTENT_TYPE_XML = "application/xml";
private static final String CONTENT_TYPE_CSS = "text/css";
private static final String CONTENT_TYPE_TEXT = "text/plain";
private static final String CONTENT_TYPE_HTML = "text/html; charset=utf-8";
private static final String CONTENT_TYPE_XHTML = "application/xhtml+xml; charset=utf-8";
private static final String CONTENT_TYPE_XML = "application/xml; charset=utf-8";
private static final String CONTENT_TYPE_CSS = "text/css; charset=utf-8";
private static final String CONTENT_TYPE_TEXT = "text/plain; charset=utf-8";

}

0 comments on commit b5e2533

Please sign in to comment.