[libsoup/content-sniffing] Also sniff_unknown when type is */*
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup/content-sniffing] Also sniff_unknown when type is */*
- Date: Wed, 24 Jun 2009 03:03:41 +0000 (UTC)
commit acc88dc33ca3efdc71ad0a6ac35dd5393032484a
Author: Gustavo Noronha Silva <gns gnome org>
Date: Tue Jun 23 22:56:38 2009 -0300
Also sniff_unknown when type is */*
libsoup/soup-content-sniffer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index 0525406..9e49d22 100644
--- a/libsoup/soup-content-sniffer.c
+++ b/libsoup/soup-content-sniffer.c
@@ -420,7 +420,8 @@ sniff (SoupContentSniffer *sniffer, SoupMessage *msg, SoupBuffer *buffer, GHashT
* manner because the spec requires it */
if ((content_type == NULL) ||
!g_ascii_strcasecmp (content_type, "unknown/unknown") ||
- !g_ascii_strcasecmp (content_type, "application/unknown"))
+ !g_ascii_strcasecmp (content_type, "application/unknown") ||
+ !g_ascii_strcasecmp (content_type, "*/*"))
return sniff_unknown (sniffer, msg, buffer, FALSE);
if (g_str_has_suffix (content_type, "+xml") ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]