mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-06-22 22:37:41 +02:00
Properly print processing options parsing error to the log
This commit is contained in:
@ -652,6 +652,10 @@ func parsePath(ctx context.Context, rctx *fasthttp.RequestCtx) (context.Context,
|
||||
imageURL, po, err = parsePathAdvanced(parts[1:], acceptHeader)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return ctx, err
|
||||
}
|
||||
|
||||
if _, err = url.ParseRequestURI(imageURL); err != nil {
|
||||
return ctx, errInvalidImageURL
|
||||
}
|
||||
|
Reference in New Issue
Block a user