diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file.go b/api/file.go index 8de69937a..b91ea7d4e 100644 --- a/api/file.go +++ b/api/file.go @@ -529,7 +529,7 @@ func writeFileResponse(filename string, contentType string, bytes []byte, w http w.Header().Del("Content-Type") // Content-Type will be set automatically by the http writer } - w.Header().Set("Content-Disposition", "attachment;filename=\""+filename+"\"") + w.Header().Set("Content-Disposition", "attachment;filename=\""+filename+"\"; filename*=UTF-8''"+url.QueryEscape(filename)) // prevent file links from being embedded in iframes w.Header().Set("X-Frame-Options", "DENY") |