summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2013-12-09 15:04:16 +0100
committerDan Winship <danw@gnome.org>2014-02-17 12:22:22 -0500
commitf5498190f9717d1366b4d57a7860899f87f0fc86 (patch)
treebb9d11d56c070e879490adf0fe11d6563c9a446f
parenta3f393f69363ea663bee9ff9ad8c950b8bbdc8c9 (diff)
downloadlibsoup-f5498190f9717d1366b4d57a7860899f87f0fc86.tar.gz
sniffing: Add comment to the XML types bit
-rw-r--r--libsoup/soup-content-sniffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index 39210af6..154df841 100644
--- a/libsoup/soup-content-sniffer.c
+++ b/libsoup/soup-content-sniffer.c
@@ -635,6 +635,7 @@ soup_content_sniffer_real_sniff (SoupContentSniffer *sniffer, SoupMessage *msg,
g_str_equal (content_type, "text/plain; charset=UTF-8")))
return sniff_text_or_binary (sniffer, buffer);
+ /* 4. XML types sent by the server are always used. */
if (g_str_has_suffix (content_type, "+xml") ||
!g_ascii_strcasecmp (content_type, "text/xml") ||
!g_ascii_strcasecmp (content_type, "application/xml"))