From a7492f8612bb50ae83e18b96cc6790aa6c3150fc Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 22 Mar 2015 12:55:44 +0100 Subject: [PATCH] Send correct MIME type for SVG images (fixes #1506) --- cmd/syncthing/gui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index a5169ff68..3e4d6ed23 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -828,6 +828,8 @@ func mimeTypeForFile(file string) string { return "application/x-font-ttf" case ".woff": return "application/x-font-woff" + case ".svg": + return "image/svg+xml" default: return mime.TypeByExtension(ext) }