From 549ed6a93bca529e7371a00404ff58e4328e6edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Fri, 14 Jun 2019 10:57:15 +0200 Subject: [PATCH] add image/svg+xml as Content-Type for svg --- main.go | 1 + 1 file changed, 1 insertion(+) 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)