mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 01:36:18 +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)
|
||||
.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
|
||||
|
||||
Reference in New Issue
Block a user