aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2019-06-14 11:30:22 +0200
committerÖzgür Kesim <oec@codeblau.de>2019-06-14 11:30:22 +0200
commit5d3cf69c90aef8f01e9ab11e63982d6849651420 (patch)
tree1d00e34ae8abbdc403213a35b6ce3f32d3f95cf8 /main.go
parent7e4fa87020cf6d04a19a20c3a3151f2c78b57085 (diff)
missing content-type for the general case added
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 de87066..d508957 100644
--- a/main.go
+++ b/main.go
@@ -78,6 +78,7 @@ func (t *Tool) execute(in io.Reader, w http.ResponseWriter) {
w.Header().Add("Content-Type", t.ContentType)
io.Copy(base64.NewEncoder(base64.StdEncoding, w), buf)
} else {
+ w.Header().Add("Content-Type", "image/svg+xml")
io.Copy(w, buf)
}
} else {