Fix html detection

This commit is contained in:
Tillie Kottmann 2020-10-31 13:46:49 +01:00
parent 1f783ec458
commit def3cc683a
1 changed files with 1 additions and 3 deletions

View File

@ -7,10 +7,8 @@ import (
"strings"
)
var htmlTag = []byte{'<', 'h', 't', 'm', 'l', '>'}
var htmlTag = []byte{'<', 'h', 't', 'm', 'l'}
// TODO: this sometimes fails??
// To test that behavior use goop on enigmaticboys dot com (adult website)
func IsHtml(body []byte) bool {
return bytes.Contains(body, htmlTag)
}