Merge pull request #2344 from dataease/pr@dev@fix_theme_switch

fix: 纯内网环境主题切换失效
This commit is contained in:
fit2cloud-chenyw 2022-05-29 13:38:20 +08:00 committed by GitHub
commit 620661f1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,8 @@ public class PluginCommonServer {
os.write(buffer, 0, i);
i = bis.read(buffer);
}
response.setContentType("image/svg+xml");
if (suffix.indexOf("svg") != -1)
response.setContentType("image/svg+xml");
os.flush();
}catch (Exception e) {
e.printStackTrace();