This commit is contained in:
2026-04-12 20:41:50 +02:00
parent d47de0609c
commit 50f4ededfb

View File

@@ -124,7 +124,7 @@ public class FileServeService {
response.header("Accept-Ranges", "bytes");
response.header("Content-Disposition", "inline; filename*=UTF-8''" +
URLEncoder.encode(fileInfo.filename, StandardCharsets.UTF_8).replace("+", "%20"));
URLEncoder.encode(name, StandardCharsets.UTF_8).replace("+", "%20"));
response.header("Content-Type", FileHelper.getMimeType(name));
return response.build();
} catch (IOException e) {