mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
FileUtil.getMimeType增加webp识别
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user