diff --git a/CHANGELOG.md b/CHANGELOG.md index 787ce7868..248aa45c3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.29(2024-06-21) +# 5.8.29(2024-06-27) ### 🐣新特性 * 【core 】 DateUtil增加offsetYear方法 @@ -24,6 +24,7 @@ * 【db 】 修复PooledConnection可能的数据库驱动未找到问题(issue#IA6EUQ@Gitee) * 【http 】 修复Mac下的微信浏览器被识别为移动端问题(issue#IA74K2@Gitee) * 【core 】 修复Tailer指定初始读取行数的计算错误问题(issue#IA77ML@Gitee) +* 【http 】 修复getFileNameFromDisposition获取头错误问题(issue#3632@Github) ------------------------------------------------------------------------------------------------------------- # 5.8.28(2024-05-29) diff --git a/hutool-http/src/main/java/cn/hutool/http/HttpResponse.java b/hutool-http/src/main/java/cn/hutool/http/HttpResponse.java index 74898f2c2..de1872d7c 100755 --- a/hutool-http/src/main/java/cn/hutool/http/HttpResponse.java +++ b/hutool-http/src/main/java/cn/hutool/http/HttpResponse.java @@ -489,7 +489,7 @@ public class HttpResponse extends HttpBase implements Closeable { */ public String getFileNameFromDisposition(String paramName) { paramName = ObjUtil.defaultIfNull(paramName, "filename"); - final List dispositions = headerList(Header.CONTENT_DISPOSITION.name()); + final List dispositions = headerList(Header.CONTENT_DISPOSITION.getValue()); String fileName = null; if (CollUtil.isNotEmpty(dispositions)) {