mirror of
https://github.com/sismics/docs.git
synced 2024-11-16 19:27:56 +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)
|
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);
|
.header(HttpHeaders.CONTENT_TYPE, mimeType);
|
||||||
if (decrypt) {
|
if (decrypt) {
|
||||||
// Cache real files
|
// Cache real files
|
||||||
|
Loading…
Reference in New Issue
Block a user