mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Fix images with , character not rendering (#4636)
This commit is contained in:
@@ -202,7 +202,7 @@ func (f *BaseFile) Serve(fs FS, w http.ResponseWriter, r *http.Request) error {
|
|||||||
|
|
||||||
// Set filename if not previously set
|
// Set filename if not previously set
|
||||||
if w.Header().Get("Content-Disposition") == "" {
|
if w.Header().Get("Content-Disposition") == "" {
|
||||||
w.Header().Set("Content-Disposition", fmt.Sprintf("filename=%s", f.Basename))
|
w.Header().Set("Content-Disposition", fmt.Sprintf(`filename="%s"`, f.Basename))
|
||||||
}
|
}
|
||||||
|
|
||||||
http.ServeContent(w, r, f.Basename, f.ModTime, content)
|
http.ServeContent(w, r, f.Basename, f.ModTime, content)
|
||||||
|
|||||||
Reference in New Issue
Block a user