ui: remove obsolete code

This commit is contained in:
Michael Hoffmann 2022-12-29 14:10:26 +01:00 committed by Brad Fitzpatrick
parent 6ab96b90c6
commit d1e67a4ba3
1 changed files with 0 additions and 5 deletions

View File

@ -515,11 +515,6 @@ func ServeStaticFile(rw http.ResponseWriter, req *http.Request, root fs.FS, file
if fi, err := f.Stat(); err == nil {
modTime = fi.ModTime()
}
// TODO(wathiede): should pkg/magic be leveraged here somehow? It has a
// slightly different purpose.
if strings.HasSuffix(file, ".svg") {
rw.Header().Set("Content-Type", "image/svg+xml")
}
http.ServeContent(rw, req, file, modTime, f.(io.ReadSeeker))
}