aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2019-06-14 12:25:10 +0200
committerÖzgür Kesim <oec@codeblau.de>2019-06-14 12:25:10 +0200
commit3459e20be1ccf864288ba8d5be7ee96bb29da42f (patch)
treeabbd574373a4786cc541bff23c468910fec6081f /main.go
parent5d3cf69c90aef8f01e9ab11e63982d6849651420 (diff)
base64 encoding and image/png fixed in Header
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 d508957..0665c09 100644
--- a/main.go
+++ b/main.go
@@ -76,6 +76,7 @@ func (t *Tool) execute(in io.Reader, w http.ResponseWriter) {
if e := cmd.Run(); e == nil {
if t.ContentType != "" {
w.Header().Add("Content-Type", t.ContentType)
+ w.Header().Set("Content-Transfer-Encoding", "base64")
io.Copy(base64.NewEncoder(base64.StdEncoding, w), buf)
} else {
w.Header().Add("Content-Type", "image/svg+xml")