mirror of https://github.com/perkeep/perkeep.git
ui: remove obsolete code
This commit is contained in:
parent
6ab96b90c6
commit
d1e67a4ba3
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue