mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-07-20 09:58:23 +00:00
Fix merge
This commit is contained in:
parent
01e17e0374
commit
de94a2c58e
@ -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)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user