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,8 +66,6 @@ func handleMedia(c *fiber.Ctx, url string) error {
return c.Render("errors/429", fiber.Map{ return c.Render("errors/429", fiber.Map{
"path": c.Path(), "path": c.Path(),
}) })
} }
c.Set("Accept-Ranges", "bytes") c.Set("Accept-Ranges", "bytes")
@ -75,5 +73,7 @@ func handleMedia(c *fiber.Ctx, url string) error {
c.Set("Content-Length", res.Header.Get("Content-Length")) c.Set("Content-Length", res.Header.Get("Content-Length"))
if res.Header.Get("Content-Range") != "" { if res.Header.Get("Content-Range") != "" {
c.Set("Content-Range", res.Header.Get("Content-Range")) c.Set("Content-Range", res.Header.Get("Content-Range"))
}
return c.SendStream(res.Body) return c.SendStream(res.Body)
} }