mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
FileUtil.getMimeType增加webp识别
This commit is contained in:
parent
31f88c5c94
commit
9040c205b8
@ -2695,6 +2695,8 @@ public class FileUtil extends PathUtil {
|
||||
return "application/x-7z-compressed";
|
||||
} else if (StrUtil.endWithIgnoreCase(filePath, ".wgt")) {
|
||||
return "application/widget";
|
||||
} else if (StrUtil.endWithIgnoreCase(filePath, ".webp")) {
|
||||
return "image/webp";
|
||||
}
|
||||
|
||||
String contentType = URLConnection.getFileNameMap().getContentTypeFor(filePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user