[rhythmbox] webremote: don't rely on xml declaration to identify svg files



commit 17e2801b52cc0c10a15a739888502f5333ca2162
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Sep 7 22:10:17 2019 +1000

    webremote: don't rely on xml declaration to identify svg files

 plugins/webremote/webremote.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/webremote/webremote.py b/plugins/webremote/webremote.py
index 1f6c045f5..a081eadf8 100644
--- a/plugins/webremote/webremote.py
+++ b/plugins/webremote/webremote.py
@@ -404,6 +404,8 @@ class WebRemotePlugin(GObject.Object, Peas.Activatable):
                        return "image/png"
                elif data[0:5] == b'<?xml':
                        return "image/svg+xml"
+               elif data[0:4] == b'<svg':
+                       return "image/svg+xml"
                else:
                        return "image/jpeg"
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]