diff --git a/knotserver/routes.go b/knotserver/routes.go index 36b7f8bb..3d26d14c 100644 --- a/knotserver/routes.go +++ b/knotserver/routes.go @@ -228,7 +228,7 @@ func (h *Handle) BlobRaw(w http.ResponseWriter, r *http.Request) { mimeType := http.DetectContentType(contents) // exception for svg - if strings.HasPrefix(mimeType, "text/xml") && filepath.Ext(treePath) == ".svg" { + if filepath.Ext(treePath) == ".svg" { mimeType = "image/svg+xml" }