Skip to content

Commit

Permalink
When a mime is not found return just the wildcard, not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Aug 11, 2021
1 parent 78f4165 commit e2edc25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/android.go
Expand Up @@ -360,8 +360,8 @@ func mimeStringFromFilter(filter *FileFilter) string {

mimeType := mime.TypeByExtension(ext)
if mimeType == "" {
mimeType = "*/*" // could not find one, so allow all
continue
log.Println("Could not find mime for extension " + ext + ", allowing all")
return "*/*" // could not find one, so allow all
}

mimeTypes = append(mimeTypes, mimeType)
Expand Down

0 comments on commit e2edc25

Please sign in to comment.