소스 검색

feat(file_decoder): expand MIME type detection to include additional file extensions

CaIon 8 달 전
부모
커밋
edd9049100
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      service/file_decoder.go

+ 1 - 1
service/file_decoder.go

@@ -86,7 +86,7 @@ func GetMimeTypeByExtension(ext string) string {
 	ext = strings.ToLower(ext)
 	switch ext {
 	// Text files
-	case "txt":
+	case "txt", "md", "markdown", "csv", "json", "xml", "html", "htm":
 		return "text/plain"
 
 	// Image files