aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2019-06-14 10:57:15 +0200
committerÖzgür Kesim <oec@codeblau.de>2019-06-14 10:57:15 +0200
commit549ed6a93bca529e7371a00404ff58e4328e6edb (patch)
tree613f33a50f2de1b5b0568c0a9b356e698926b902 /main.go
parent62f1f72f402a83af4a0bf992bc460898883efa98 (diff)
add image/svg+xml as Content-Type for svg
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index c3afed3..796fae4 100644
--- a/main.go
+++ b/main.go
@@ -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)