content type set at the response

alpha
alex 2023-01-04 13:25:23 +01:00
parent e36a7f9191
commit 198342948c
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ func GetAvatar(c *fiber.Ctx) error {
return c.SendStatus(fiber.StatusBadRequest) return c.SendStatus(fiber.StatusBadRequest)
} }
c.Context().SetContentType("image/webp")
return c.Send(img) return c.Send(img)
} }