content type set at the response
parent
e36a7f9191
commit
198342948c
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue