[gdk-pixbuf] gdk-pixbuf-io: treat application/gzip like text/plain
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] gdk-pixbuf-io: treat application/gzip like text/plain
- Date: Thu, 30 Apr 2015 19:56:08 +0000 (UTC)
commit 1f61b30a1f217fd560906d462b87a27b2b6655c8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Apr 20 15:16:48 2015 +0300
gdk-pixbuf-io: treat application/gzip like text/plain
https://bugzilla.gnome.org/show_bug.cgi?id=648815
gdk-pixbuf/gdk-pixbuf-io.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c
index 367d45c..a805e82 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.c
+++ b/gdk-pixbuf/gdk-pixbuf-io.c
@@ -893,7 +893,7 @@ _gdk_pixbuf_get_module (guchar *buffer, guint size,
gboolean uncertain;
mime_type = g_content_type_guess (NULL, buffer, size, &uncertain);
- if ((uncertain || g_str_equal (mime_type, "text/plain")) && filename != NULL) {
+ if ((uncertain || g_str_equal (mime_type, "text/plain") || g_str_equal (mime_type,
"application/gzip")) && filename != NULL) {
g_free (mime_type);
mime_type = g_content_type_guess (filename, buffer, size, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]