mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
Add origin width & height to debug headers
This commit is contained in:
@@ -99,6 +99,8 @@ func respondWithImage(reqID string, r *http.Request, rw http.ResponseWriter, res
|
||||
|
||||
if config.EnableDebugHeaders {
|
||||
rw.Header().Set("X-Origin-Content-Length", strconv.Itoa(len(originData.Data)))
|
||||
rw.Header().Set("X-Origin-Width", resultData.Headers["X-Origin-Width"])
|
||||
rw.Header().Set("X-Origin-Height", resultData.Headers["X-Origin-Height"])
|
||||
}
|
||||
|
||||
rw.Header().Set("Content-Length", strconv.Itoa(len(resultData.Data)))
|
||||
|
Reference in New Issue
Block a user