mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Send correct MIME type for SVG images (fixes #1506)
This commit is contained in:
parent
123b1f01e4
commit
a7492f8612
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user