[libsoup: 6/10] sniffing: Add comment to the XML types bit



commit f5498190f9717d1366b4d57a7860899f87f0fc86
Author: Gustavo Noronha Silva <gns gnome org>
Date:   Mon Dec 9 15:04:16 2013 +0100

    sniffing: Add comment to the XML types bit

 libsoup/soup-content-sniffer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index 39210af..154df84 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"))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]