This commit is contained in:
Looly
2024-06-27 12:04:00 +08:00
parent 46ada04f95
commit e56e10b75c
5 changed files with 139 additions and 124 deletions

View File

@@ -60,7 +60,7 @@ public class HttpHeaderUtil {
*/
public static String getFileNameFromDisposition(final Map<String, List<String>> headers, String paramName) {
paramName = ObjUtil.defaultIfNull(paramName, "filename");
final List<String> dispositions = headerList(headers, HeaderName.CONTENT_DISPOSITION.name());
final List<String> dispositions = headerList(headers, HeaderName.CONTENT_DISPOSITION.getValue());
String fileName = null;
if (CollUtil.isNotEmpty(dispositions)) {