mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix content-type problem. #1052
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ public class DirectoryBrowser {
|
||||
|
||||
String renderResult = renderDir(file);
|
||||
fullResp.content().writeBytes(renderResult.getBytes("utf-8"));
|
||||
fullResp.headers().set(HttpHeaderNames.CONTENT_TYPE, "content-type: text/html; charset=utf-8");
|
||||
fullResp.headers().set(HttpHeaderNames.CONTENT_TYPE, "text/html; charset=utf-8");
|
||||
} else {
|
||||
FileInputStream fileInputStream = new FileInputStream(file);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user