This commit is contained in:
2023-05-26 13:02:18 +02:00
parent 1e0e625d1a
commit f19718d46c
2 changed files with 6 additions and 5 deletions

View File

@@ -123,8 +123,7 @@ func PlayFile(ctx *fiber.Ctx) error {
root := config.Instance().GetConfig().DownloadPath
//TODO: further path / file validations
// TODO: further path / file validations
if strings.Contains(filepath.Dir(string(decoded)), root) {
ctx.SendStatus(fiber.StatusPartialContent)
return ctx.SendFile(string(decoded))