[fix] Disable separate selector characters for PDF and XML #1

Merged
pisoj merged 2 commits from small-fixes into master 2026-05-24 23:59:17 +02:00
Showing only changes of commit e0bb258de0 - Show all commits
-6
View File
@@ -90,14 +90,8 @@ func (params *GopherTypeCharParams) GopherTypeChar(path string, isDir bool) stri
return "I"
case strings.HasPrefix(mimeType, "audio/"):
return "s"
case mimeType == "application/pdf":
return "P"
case strings.HasPrefix(mimeType, "text/html"):
return "h"
case strings.HasPrefix(mimeType, "text/rtf"):
return "r"
case strings.HasPrefix(mimeType, "text/xml") || strings.HasPrefix(mimeType, "application/xml"):
return "X"
default:
return "9"
}