Removes support for client certificates in Bombadillo #181

Merged
sloum merged 5 commits from remove-client-certs into release2.3.2 2020-07-10 04:46:49 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 688a0b3ef2 - Show all commits

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")