diff --git a/src/mime/type_unix.go b/src/mime/type_unix.go index b76e1dc4815..e83fbb94d58 100644 --- a/src/mime/type_unix.go +++ b/src/mime/type_unix.go @@ -42,7 +42,7 @@ func loadMimeGlobsFile(filename string) error { for scanner.Scan() { // Each line should be of format: weight:mimetype:*.ext[:morefields...] fields := strings.Split(scanner.Text(), ":") - if len(fields) < 3 || len(fields[0]) < 1 || len(fields[2]) < 2 { + if len(fields) < 3 || len(fields[0]) < 1 || len(fields[2]) < 3 { continue } else if fields[0][0] == '#' || fields[2][0] != '*' || fields[2][1] != '.' { continue