fix content disposition header

This commit is contained in:
Benjamin Gamard 2018-03-26 17:15:36 +02:00
parent c8c4208bb4
commit f45f2d5df9

View File

@ -536,7 +536,7 @@ public class FileResource extends BaseResource {
}
Response.ResponseBuilder builder = Response.ok(stream)
.header(HttpHeaders.CONTENT_DISPOSITION, "inline; filename=" + file.getFullName("data"))
.header(HttpHeaders.CONTENT_DISPOSITION, "inline; filename=\"" + file.getFullName("data") + "\"")
.header(HttpHeaders.CONTENT_TYPE, mimeType);
if (decrypt) {
// Cache real files