mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
fix mime sniff test with comment tag
This commit is contained in:
parent
399d19ce25
commit
7706ba5beb
@ -772,7 +772,7 @@ END_TEST
|
|||||||
#define SIG(s,m,a) { (const uint8_t *)s, SLEN(s), &corestring_lwc_##m, a }
|
#define SIG(s,m,a) { (const uint8_t *)s, SLEN(s), &corestring_lwc_##m, a }
|
||||||
static struct test_mimetype text_html_header_tests[] = {
|
static struct test_mimetype text_html_header_tests[] = {
|
||||||
SIG("text", text_html, true),
|
SIG("text", text_html, true),
|
||||||
SIG("\xef\xbb\xbf\t\n\r <!-- a comment><!DOCTYPE HTML><?pi?><head>", text_html, true),
|
SIG("\xef\xbb\xbf\t\n\r <!-- a comment --><!DOCTYPE HTML><?pi?><head>", text_html, true),
|
||||||
SIG("\xef\xbb\xbf\t\n\r <!DOCTYPE HTML><?pi?><rss version=\"2.0\">", application_rss_xml, true),
|
SIG("\xef\xbb\xbf\t\n\r <!DOCTYPE HTML><?pi?><rss version=\"2.0\">", application_rss_xml, true),
|
||||||
SIG("\t\n\r <? pi ?><feed>", application_atom_xml, true),
|
SIG("\t\n\r <? pi ?><feed>", application_atom_xml, true),
|
||||||
SIG("<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://purl.org/rss/1.0\">", application_rss_xml, true),
|
SIG("<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns=\"http://purl.org/rss/1.0\">", application_rss_xml, true),
|
||||||
|
Loading…
Reference in New Issue
Block a user