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:
parent
bf0abf4ce5
commit
9583802a32
5
morty.go
5
morty.go
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user