mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Fix GZip pool calibration
This commit is contained in:
@@ -137,7 +137,7 @@ func respondWithImage(ctx context.Context, reqID string, r *http.Request, rw htt
|
|||||||
rw.Header().Set("Content-Length", strconv.Itoa(buf.Len()))
|
rw.Header().Set("Content-Length", strconv.Itoa(buf.Len()))
|
||||||
|
|
||||||
rw.WriteHeader(200)
|
rw.WriteHeader(200)
|
||||||
buf.WriteTo(rw)
|
rw.Write(buf.Bytes())
|
||||||
} else {
|
} else {
|
||||||
rw.Header().Set("Content-Length", strconv.Itoa(len(data)))
|
rw.Header().Set("Content-Length", strconv.Itoa(len(data)))
|
||||||
rw.WriteHeader(200)
|
rw.WriteHeader(200)
|
||||||
|
Reference in New Issue
Block a user