content type for media

This commit is contained in:
Niko Abeler 2023-07-25 21:39:57 +02:00
parent e35bf9af5d
commit 34e4984af9
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func (h *MediaHandler) Handle(c *fiber.Ctx) error {
return err
}
binary, err := h.binaryService.FindById(id)
c.Set("Content-Type", binary.Mime())
if err != nil {
return err
}