mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -877,4 +877,8 @@ public class ExcelWriteTest {
|
||||
writer.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getDispositionTest(){
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user