diff options
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 |
commit | 549ed6a93bca529e7371a00404ff58e4328e6edb (patch) | |
tree | 613f33a50f2de1b5b0568c0a9b356e698926b902 | |
parent | 62f1f72f402a83af4a0bf992bc460898883efa98 (diff) |
add image/svg+xml as Content-Type for svg
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |