mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-02-02 11:34:20 +02:00
Properly print processing options parsing error to the log
This commit is contained in:
parent
94baf32120
commit
4275251f4c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user