소스 검색

Remove URL verification from processing options parsing stage

DarthSim 6 년 전
부모
커밋
de804a9245
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      processing_options.go

+ 0 - 8
processing_options.go

@@ -237,10 +237,6 @@ func decodeBase64URL(parts []string) (string, string, error) {
 
 	fullURL := fmt.Sprintf("%s%s", conf.BaseURL, string(imageURL))
 
-	// if _, err := url.ParseRequestURI(fullURL); err != nil {
-	// 	return "", "", fmt.Errorf("Invalid image url: %s", fullURL)
-	// }
-
 	return fullURL, format, nil
 }
 
@@ -269,10 +265,6 @@ func decodePlainURL(parts []string) (string, string, error) {
 
 	fullURL := fmt.Sprintf("%s%s", conf.BaseURL, unescaped)
 
-	// if _, err := url.ParseRequestURI(fullURL); err != nil {
-	// 	return "", "", fmt.Errorf("Invalid image url: %s", fullURL)
-	// }
-
 	return fullURL, format, nil
 }