1
0
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:
DarthSim 2018-10-18 17:01:51 +06:00
parent 94baf32120
commit 4275251f4c

View File

@ -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
}