Skip to content

Commit

Permalink
fix(local): video file thumbnails not displaying on iOS Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
gmugu committed Nov 21, 2023
1 parent 042df80 commit 32d869a
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 32d869a

Please sign in to comment.