From 10ead2e61fc3dcd8290c197e09687d0cede34089 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 fd0254bcb..834bad096 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) }