add image/svg+xml as Content-Type for svg

This commit is contained in:
Özgür Kesim 2019-06-14 10:57:15 +02:00
parent 62f1f72f40
commit 549ed6a93b

View File

@ -47,6 +47,7 @@ func (t Tool) execute(in io.Reader, w http.ResponseWriter) {
cmd.Stdout = buf
if e := cmd.Run(); e == nil {
w.Header().Set("Content-Type", "image/svg+xml")
io.Copy(w, buf)
} else {
log.Printf("%s returned error\n", t.Name)