mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 09:46:17 +00:00
fix content disposition header
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user