add .gmi type and update README
This commit is contained in:
@@ -219,7 +219,8 @@ func main() {
|
||||
log := NewLogger(true)
|
||||
|
||||
err := mime.AddExtensionType(".gemini", "text/gemini")
|
||||
if err != nil {
|
||||
err2 := mime.AddExtensionType(".gmi", "text/gemini")
|
||||
if err != nil || err2 != nil {
|
||||
log.Info("Could not add text/gemini to mime-type database;", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user