From 8e955d2119fba299f1ce617448b50e262607e7a0 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Tue, 29 Aug 2023 11:03:10 +0200 Subject: [PATCH] hls: return 404 when requesting hls.min.js.map (#2262) --- internal/core/hls_http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/hls_http_server.go b/internal/core/hls_http_server.go index 86202a37..f5fdc815 100644 --- a/internal/core/hls_http_server.go +++ b/internal/core/hls_http_server.go @@ -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") ||