mirror of
https://gitee.com/BDWare/front-base
synced 2025-01-09 17:34:01 +00:00
update file handler
This commit is contained in:
parent
6dfe551a1d
commit
d4e76259db
@ -4,6 +4,7 @@ plugins {
|
||||
id 'maven-publish'
|
||||
id 'signing'
|
||||
}
|
||||
apply from: '../spotless.gradle'
|
||||
|
||||
apply from: '../spotless.gradle'
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user