aboutsummaryrefslogtreecommitdiffhomepage
path: root/http/client/response_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-12-12 21:13:06 -0800
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-12-12 21:13:06 -0800
commit82e08d0f698a181617aa727345a29eb6500d1d4c (patch)
treeaffe140a6b3f3019dc1abc6308164392db3f5a0a /http/client/response_test.go
parent266d97ad63df7be8c4ed96de00398432d63487d7 (diff)
Update XML encoding regex to take single quotes into consideration
Diffstat (limited to 'http/client/response_test.go')
-rw-r--r--http/client/response_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/http/client/response_test.go b/http/client/response_test.go
index 5b23d5c..37f6faf 100644
--- a/http/client/response_test.go
+++ b/http/client/response_test.go
@@ -124,6 +124,7 @@ func TestEnsureUnicodeWithHTMLDocuments(t *testing.T) {
{"charset-content-type-xml-iso88591.xml", "application/rss+xml; charset=ISO-8859-1", false},
{"windows_1251.xml", "text/xml", false},
{"smallfile.xml", "text/xml; charset=utf-8", true},
+ {"single_quote_xml_encoding.xml", "text/xml; charset=utf-8", true},
}
for _, tc := range unicodeTestCases {