Przeglądaj źródła

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

CaIon 6 miesięcy temu
rodzic
commit
edd9049100
1 zmienionych plików z 1 dodań i 1 usunięć
  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