mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
fix content disposition header
This commit is contained in:
parent
c8c4208bb4
commit
f45f2d5df9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user