diff --git a/internal/core/hls_http_server.go b/internal/core/hls_http_server.go index e65b8b0e267..f4d694eb98d 100644 --- a/internal/core/hls_http_server.go +++ b/internal/core/hls_http_server.go @@ -146,7 +146,7 @@ func (s *hlsHTTPServer) onRequest(ctx *gin.Context) { dir, fname = pa, "" if !strings.HasSuffix(dir, "/") { - l := "/" + dir + "/" + l := ctx.Request.URL.Path[1:] + "/" if ctx.Request.URL.RawQuery != "" { l += "?" + ctx.Request.URL.RawQuery }