倍率问题和图片问题调整
This commit is contained in:
1 parent
f1993eb388
commit
3f29ba716a
20 files changed
+1210
-24
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user