[libsoup/content-sniffing] Add the text/plain types to the type checking table
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Subject: [libsoup/content-sniffing] Add the text/plain types to the type checking table
- Date: Thu, 18 Jun 2009 21:57:07 -0400 (EDT)
commit b73aa267dca44660798d5538a9f05c1ae34e721a
Author: Gustavo Noronha Silva <gns gnome org>
Date: Thu Jun 18 22:09:39 2009 -0300
Add the text/plain types to the type checking table
libsoup/soup-content-sniffer.c | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
index ecb925c..74884a4 100644
--- a/libsoup/soup-content-sniffer.c
+++ b/libsoup/soup-content-sniffer.c
@@ -136,7 +136,26 @@ static struct _type_info types_table[] = {
"application/postscript",
FALSE },
- /* BOMs go here */
+ { FALSE,
+ "\xFF\xFF\x00\x00",
+ "\xFE\xFF\x00\x00",
+ 4,
+ "text/plain",
+ FALSE },
+
+ { FALSE,
+ "\xFF\xFF\x00\x00",
+ "\xFF\xFF\x00\x00",
+ 4,
+ "text/plain",
+ FALSE },
+
+ { FALSE,
+ "\xFF\xFF\xFF\x00",
+ "\xEF\xBB\xBF\x00",
+ 4,
+ "text/plain",
+ FALSE },
{ FALSE,
"\xFF\xFF\xFF\xFF\xFF\xFF",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]