Revert "add image/svg+xml as Content-Type for svg"
This reverts commit 549ed6a93b
.
maste was already ahead with this.
This commit is contained in:
parent
549ed6a93b
commit
6c7d5f258f
1
main.go
1
main.go
@ -47,7 +47,6 @@ func (t Tool) execute(in io.Reader, w http.ResponseWriter) {
|
|||||||
cmd.Stdout = buf
|
cmd.Stdout = buf
|
||||||
|
|
||||||
if e := cmd.Run(); e == nil {
|
if e := cmd.Run(); e == nil {
|
||||||
w.Header().Set("Content-Type", "image/svg+xml")
|
|
||||||
io.Copy(w, buf)
|
io.Copy(w, buf)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("%s returned error\n", t.Name)
|
log.Printf("%s returned error\n", t.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user