瀏覽代碼

Properly print processing options parsing error to the log

DarthSim 6 年之前
父節點
當前提交
4275251f4c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      processing_options.go

+ 4 - 0
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
 	}