1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-06-17 22:37:33 +02:00

Don't set Content-DPR header

This commit is contained in:
DarthSim
2023-04-18 18:40:23 +03:00
parent 85fb470704
commit c98752651a
3 changed files with 1 additions and 8 deletions

View File

@ -117,10 +117,6 @@ func respondWithImage(reqID string, r *http.Request, rw http.ResponseWriter, sta
rw.Header().Set("Content-Type", resultData.Type.Mime())
rw.Header().Set("Content-Disposition", contentDisposition)
if po.Dpr != 1 {
rw.Header().Set("Content-DPR", strconv.FormatFloat(po.Dpr, 'f', 2, 32))
}
setCacheControl(rw, po.Expires, originData.Headers)
setVary(rw)
setCanonical(rw, originURL)