fix TTS 404ing for no reason
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 3m7s
mozhi pipeline / Build and publish artifacts (push) Successful in 11m50s

This commit is contained in:
2023-09-10 18:44:17 +05:30
parent c37109db11
commit a2ae02f6d7
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func HandleTTS(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}
c.Set("Content-Type", "audio/mpeg")
return c.Send(data)
return c.Status(fiber.StatusOK).Send(data)
}
// HandleTranslate godoc