From 5d3cf69c90aef8f01e9ab11e63982d6849651420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Fri, 14 Jun 2019 11:30:22 +0200 Subject: [PATCH] missing content-type for the general case added --- main.go | 1 + 1 file changed, 1 insertion(+) 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 {