mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-29 04:53:05 +02:00
IMG-13: separate http.Headers from ImageData (#1475)
* Separate headers from ImageData * processing.Result
This commit is contained in:
@@ -470,7 +470,7 @@ func (img *Image) Save(imgtype imagetype.Type, quality int) (imagedata.ImageData
|
||||
|
||||
b := ptrToBytes(ptr, int(imgsize))
|
||||
|
||||
i := imagedata.NewFromBytesWithFormat(imgtype, b, nil)
|
||||
i := imagedata.NewFromBytesWithFormat(imgtype, b)
|
||||
i.AddCancel(cancel)
|
||||
|
||||
return i, nil
|
||||
|
Reference in New Issue
Block a user