Merge pull request #40 from asciimoo/firefox-ua

[fix] Firefox  user agent instead of Chrome

git-svn-id: file:///srv/svn/repo/yukari/trunk@59 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
asciimoo 2016-12-04 11:00:14 +00:00
parent bf0abf4ce5
commit 9583802a32

View File

@ -499,7 +499,10 @@ func sanitizeHTML(rc *RequestConfig, out io.Writer, htmlDoc []byte) {
sanitizeHTML(rc, out, decoder.Raw())
}
case html.DoctypeToken, html.CommentToken:
case html.CommentToken:
// ignore comment. TODO : parse IE conditional comment
case html.DoctypeToken:
out.Write(decoder.Raw())
}
} else {