|
@@ -214,7 +214,7 @@ public class AdminDictKuromojiAction extends FessAdminAction {
|
|
|
validate(form, messages -> {}, () -> downloadpage(form.dictId));
|
|
|
verifyTokenKeep(() -> downloadpage(form.dictId));
|
|
|
return kuromojiService.getKuromojiFile(form.dictId).map(file -> {
|
|
|
- return asStream(new File(file.getPath()).getName()).stream(out -> {
|
|
|
+ return asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
|
|
|
try (InputStream inputStream = file.getInputStream()) {
|
|
|
out.write(inputStream);
|
|
|
}
|