fix (plg_image_ascii): reasonable content type

This commit is contained in:
Mickael Kerjean 2022-09-08 15:18:43 +10:00
parent bb7ea98f02
commit d53cbefc54

View file

@ -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
})
}