Fix merge

This commit is contained in:
video-prize-ranch 2023-06-02 23:11:58 -04:00
parent 01e17e0374
commit de94a2c58e
No known key found for this signature in database

View File

@ -66,14 +66,14 @@ func handleMedia(c *fiber.Ctx, url string) error {
return c.Render("errors/429", fiber.Map{
"path": c.Path(),
})
}
c.Set("Accept-Ranges", "bytes")
c.Set("Content-Type", res.Header.Get("Content-Type"));
c.Set("Content-Length", res.Header.Get("Content-Length"))
if res.Header.Get("Content-Range") != "" {
c.Set("Content-Range", res.Header.Get("Content-Range"))
}
return c.SendStream(res.Body)
}