This commit is contained in:
Looly
2022-04-07 00:16:35 +08:00
parent d415696e01
commit 449ec53da2
3 changed files with 7 additions and 2 deletions

View File

@@ -373,7 +373,7 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
}
fileName = StrUtil.addSuffixIfNot(URLUtil.encodeAll(fileName, charset), isXlsx() ? ".xlsx" : ".xls");
return StrUtil.format("attachment; filename=\"{}\"; filename*={}''{}", fileName, charset.name(), fileName);
return StrUtil.format("attachment; filename=\"{}\";", fileName);
}
/**

View File

@@ -877,4 +877,8 @@ public class ExcelWriteTest {
writer.close();
}
@Test
public void getDispositionTest(){
}
}