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:
parent
0e6f2f1f5e
commit
8970a21b58
6 changed files with 1065 additions and 1065 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue