Release 2.3.3 to master #204

Merged
sloum merged 86 commits from develop into master 2020-11-20 04:38:12 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 953ae8e28f - Show all commits

View File

@ -331,6 +331,9 @@ func Visit(host, port, resource string, td *TofuDigest) (Capsule, error) {
case 2:
mimeAndCharset := strings.Split(header[1], ";")
meta = mimeAndCharset[0]
if meta == "" {
meta = "text/gemini"
}
minMajMime := strings.Split(meta, "/")
if len(minMajMime) < 2 {
return capsule, fmt.Errorf("Improperly formatted mimetype received from server")