mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 04:32:29 +02:00
IMG-23: Replace imagemeta with imagedetect (#1483)
* Replace imagemeta with imagedetect * Removed imagemeta package * 1 page in the check
This commit is contained in:
@@ -370,8 +370,9 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
|
||||
})()
|
||||
|
||||
downloadOpts := imagedata.DownloadOptions{
|
||||
Header: imgRequestHeader,
|
||||
CookieJar: nil,
|
||||
Header: imgRequestHeader,
|
||||
CookieJar: nil,
|
||||
MaxSrcFileSize: po.SecurityOptions.MaxSrcFileSize,
|
||||
}
|
||||
|
||||
if config.CookiePassthrough {
|
||||
@@ -379,7 +380,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
|
||||
checkErr(ctx, "download", err)
|
||||
}
|
||||
|
||||
return imagedata.DownloadAsync(ctx, imageURL, "source image", downloadOpts, po.SecurityOptions)
|
||||
return imagedata.DownloadAsync(ctx, imageURL, "source image", downloadOpts)
|
||||
}()
|
||||
|
||||
var nmErr imagefetcher.NotModifiedError
|
||||
|
Reference in New Issue
Block a user