소스 검색

Properly print processing options parsing error to the log

DarthSim 7 년 전
부모
커밋
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
 	}