diff --git a/processing_options.go b/processing_options.go index f3ca39d7..c51e6928 100644 --- a/processing_options.go +++ b/processing_options.go @@ -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 }