hls: return 404 when requesting hls.min.js.map (#2262)

This commit is contained in:
Alessandro Ros 2023-08-29 11:03:10 +02:00 committed by GitHub
parent e74c45865a
commit 8e955d2119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ func (s *hlsHTTPServer) onRequest(ctx *gin.Context) {
ctx.Writer.Write(hlsMinJS)
return
case pa == "", pa == "favicon.ico":
case pa == "", pa == "favicon.ico", strings.HasSuffix(pa, "/hls.min.js.map"):
return
case strings.HasSuffix(pa, ".m3u8") ||