content type for media
This commit is contained in:
parent
e35bf9af5d
commit
34e4984af9
|
@ -23,6 +23,7 @@ func (h *MediaHandler) Handle(c *fiber.Ctx) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
binary, err := h.binaryService.FindById(id)
|
binary, err := h.binaryService.FindById(id)
|
||||||
|
c.Set("Content-Type", binary.Mime())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue