mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (plg_image_ascii): reasonable content type
This commit is contained in:
parent
bb7ea98f02
commit
d53cbefc54
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue