mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复getFileNameFromDisposition获取头错误问题
This commit is contained in:
@@ -489,7 +489,7 @@ public class HttpResponse extends HttpBase<HttpResponse> implements Closeable {
|
||||
*/
|
||||
public String getFileNameFromDisposition(String paramName) {
|
||||
paramName = ObjUtil.defaultIfNull(paramName, "filename");
|
||||
final List<String> dispositions = headerList(Header.CONTENT_DISPOSITION.name());
|
||||
final List<String> dispositions = headerList(Header.CONTENT_DISPOSITION.getValue());
|
||||
String fileName = null;
|
||||
if (CollUtil.isNotEmpty(dispositions)) {
|
||||
|
||||
|
Reference in New Issue
Block a user