mirror of
https://github.com/syncthing/syncthing.git
synced 2026-11-26 20:06:31 -08:00
Send correct MIME type for SVG images (fixes #1506)
This commit is contained in:
1 parent
960b40fa89
commit
10ead2e61f
1 file changed
+2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user