From d53cbefc54e9985f4213597340d5faacd6e1d9ef Mon Sep 17 00:00:00 2001 From: Mickael Kerjean Date: Thu, 8 Sep 2022 15:18:43 +1000 Subject: [PATCH] fix (plg_image_ascii): reasonable content type --- server/plugin/plg_image_ascii/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/plugin/plg_image_ascii/index.go b/server/plugin/plg_image_ascii/index.go index cdff920a..1d6afa0f 100644 --- a/server/plugin/plg_image_ascii/index.go +++ b/server/plugin/plg_image_ascii/index.go @@ -27,6 +27,7 @@ func init() { opt.FixedWidth = 80 opt.FixedHeight = 40 out := convert.NewImageConverter().Image2ASCIIString(img, &opt) + (*res).Header().Set("Content-Type", "application/octet-stream") return NewReadCloserFromBytes([]byte(out)), nil }) }