[libsoup/content-sniffing-update: 5/8] Add comment to the XML types bit
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/content-sniffing-update: 5/8] Add comment to the XML types bit
- Date: Wed, 11 Dec 2013 12:48:00 +0000 (UTC)
commit 1fea839f14c40f47e1df0b5ec07a131dba2f9653
Author: Gustavo Noronha Silva <gns gnome org>
Date: Mon Dec 9 15:04:16 2013 +0100
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 0f6f501..d5deb43 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_ascii_strcasecmp (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]