倍率问题和图片问题调整

This commit is contained in:
andy committed 2026-09-23 13:33:47 +08:00
1 parent f1993eb388
commit 3f29ba716a
20 files changed
+1210 -24

No files matched your search

+7 -2
View File
@@ -295,9 +295,14 @@ func (h *assetsHandler) download(w http.ResponseWriter, r *http.Request, public
return
}
defer blob.Body.Close()
disposition := contentDisposition(a.Name)
name, blob, err := assets.NormalizeImageDownload(a.Name, blob)
if err != nil {
writeAssetError(w, err, public, "")
return
}
disposition := contentDisposition(name)
if inline {
disposition = inlineContentDisposition(a.Name)
disposition = inlineContentDisposition(name)
}
writeBlob(w, blob, "private, no-store", disposition)
}