missing content-type for the general case added
This commit is contained in:
parent
7e4fa87020
commit
5d3cf69c90
1
main.go
1
main.go
@ -78,6 +78,7 @@ func (t *Tool) execute(in io.Reader, w http.ResponseWriter) {
|
|||||||
w.Header().Add("Content-Type", t.ContentType)
|
w.Header().Add("Content-Type", t.ContentType)
|
||||||
io.Copy(base64.NewEncoder(base64.StdEncoding, w), buf)
|
io.Copy(base64.NewEncoder(base64.StdEncoding, w), buf)
|
||||||
} else {
|
} else {
|
||||||
|
w.Header().Add("Content-Type", "image/svg+xml")
|
||||||
io.Copy(w, buf)
|
io.Copy(w, buf)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user