mirror of https://github.com/nyancrimew/goop.git
Fix html detection
This commit is contained in:
parent
1f783ec458
commit
def3cc683a
|
@ -7,10 +7,8 @@ import (
|
||||||
"strings"
|
"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 {
|
func IsHtml(body []byte) bool {
|
||||||
return bytes.Contains(body, htmlTag)
|
return bytes.Contains(body, htmlTag)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue