update file handler

This commit is contained in:
CaiHQ 2023-12-15 16:49:32 +08:00
parent 6dfe551a1d
commit d4e76259db
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ plugins {
id 'maven-publish'
id 'signing'
}
apply from: '../spotless.gradle'
apply from: '../spotless.gradle'

View File

@ -40,7 +40,7 @@ public class HttpFileHandleAdapter extends SimpleChannelInboundHandler<FullHttpR
} else if (path.endsWith(".ico")) {
headers.set(HttpHeaderNames.CONTENT_TYPE, "image/x-icon;");
} else if (path.endsWith(".svg")) {
headers.set(HttpHeaderNames.CONTENT_TYPE, "text/xml;charset=utf-8");
headers.set(HttpHeaderNames.CONTENT_TYPE, "image/svg+xml;charset=utf-8");
} else if (path.endsWith(".ypk")) {
headers.set(HttpHeaderNames.CONTENT_TYPE, "application/ypk");
}