1
0

2 Commity 3ff88cf312 ... 3d9e189795

Autor SHA1 Správa Dátum
  Ivan Arkhipov 3d9e189795 Fixed bug caused by gogs update 3 rokov pred
  Ivan Arkhipov 3ff88cf312 Fixed bug caused by gogs update 3 rokov pred
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      internal/tool/tool.go

+ 3 - 3
internal/tool/tool.go

@@ -45,9 +45,9 @@ func DetectEncoding(content []byte) (string, error) {
 		return "UTF-8", err
 	}
 
-	if result.Charset != "UTF-8" && len(conf.Repository.AnsiCharset) > 0 {
-		log.Trace("Using default AnsiCharset: %s", conf.Repository.AnsiCharset)
-		return conf.Repository.AnsiCharset, err
+	if result.Charset != "UTF-8" && len(conf.Repository.ANSICharset) > 0 {
+		log.Trace("Using default ANSICharset: %s", conf.Repository.ANSICharset)
+		return conf.Repository.ANSICharset, err
 	}
 
 	log.Trace("Detected encoding: %s", result.Charset)