mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fixed bug for monitor web set contentType
This commit is contained in:
@@ -155,6 +155,10 @@ public abstract class ResourceServlet extends HttpServlet {
|
||||
IOException {
|
||||
|
||||
String filePath = getFilePath(fileName);
|
||||
|
||||
if (filePath.endsWith(".html")) {
|
||||
response.setContentType("text/html; charset=utf-8");
|
||||
}
|
||||
if (fileName.endsWith(".jpg")) {
|
||||
byte[] bytes = Utils.readByteArrayFromResource(filePath);
|
||||
if (bytes != null) {
|
||||
|
||||
Reference in New Issue
Block a user