forked from tangled.org/core
Monorepo for Tangled

knotserver: simplify svg exception for now

Let's stick to just the file extension alone since we sometimes seem to get
text/plain as the MIME type.

authored by anirudh.fi and committed by Tangled 9bbb99d8 1fdea40b

Changed files
+1 -1
knotserver
+1 -1
knotserver/routes.go
··· 228 228 mimeType := http.DetectContentType(contents) 229 229 230 230 // exception for svg 231 - if strings.HasPrefix(mimeType, "text/xml") && filepath.Ext(treePath) == ".svg" { 231 + if filepath.Ext(treePath) == ".svg" { 232 232 mimeType = "image/svg+xml" 233 233 } 234 234