Browse Source

Send correct MIME type for SVG images (fixes #1506)

Jakob Borg 11 years ago
parent
commit
a7492f8612
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cmd/syncthing/gui.go

+ 2 - 0
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)
 	}