Skip to content

Commit

Permalink
hls: fix appending slash when behind a reverse proxy (#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Dec 1, 2023
1 parent 0e5e332 commit 50e7b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/hls_http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 50e7b03

Please sign in to comment.