Skip to content

Commit

Permalink
fix: content-type conflicts with #5420
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Nov 24, 2023
1 parent 3f405de commit d26887d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/common/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func Proxy(w http.ResponseWriter, r *http.Request, link *model.Link, file model.
attachFileName(w, file)
contentType := link.Header.Get("Content-Type")
if contentType != "" {
w.Header().Add("Content-Type", contentType)
w.Header().Set("Content-Type", contentType)
}
http.ServeContent(w, r, file.GetName(), file.ModTime(), link.MFile)
return nil
Expand Down

0 comments on commit d26887d

Please sign in to comment.