mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
hls: fix appending slash when behind a reverse proxy (#2770)
This commit is contained in:
parent
0e5e3324a7
commit
50e7b038c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue