[gtranslator: 2/4] fix how mime_type is guessed
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 2/4] fix how mime_type is guessed
- Date: Thu, 17 Mar 2022 13:10:05 +0000 (UTC)
commit eb2dd131da33e252fdc7cad7da241b85c680e61f
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Sun Mar 13 20:59:52 2022 +0100
fix how mime_type is guessed
src/gtr-actions-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtr-actions-file.c b/src/gtr-actions-file.c
index e61ebd5b..2afbaec5 100644
--- a/src/gtr-actions-file.c
+++ b/src/gtr-actions-file.c
@@ -477,7 +477,7 @@ gtr_upload_file (GtkWidget *upload_dialog,
header = gtr_po_get_header (po);
/* Check mimetype */
- mime_type = g_strdup (g_content_type_get_mime_type (content));
+ mime_type = g_content_type_guess (filename, (const guchar *) content, size, NULL);
/* Get the authentication token from the user profile */
pmanager = gtr_profile_manager_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]