Merge branch 'release2.3.2' into remove-client-certs

This commit is contained in:
Sloom Sloum Sluom IV 2020-07-03 18:04:39 -04:00
commit 688a0b3ef2
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,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")