Преглед на файлове

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

CaIon преди 9 месеца
родител
ревизия
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