1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Fix regression for downloading certain binary attachments

This commit is contained in:
HarveyKandola 2019-11-14 17:38:53 +00:00
parent 0e6f2f1f5e
commit 8970a21b58
6 changed files with 1065 additions and 1065 deletions

View file

@ -180,7 +180,7 @@ func (h *Handler) Download(w http.ResponseWriter, r *http.Request) {
dataSize := len(a.Data)
w.WriteHeader(http.StatusOK)
// w.WriteHeader(http.StatusOK)
w.Header().Set("Content-Type", typ)
w.Header().Set("Content-Disposition", `Attachment; filename="`+a.Filename+`" ; `+`filename*="`+a.Filename+`"`)
if dataSize != 0 {