From 478607a60251633f179a137c93e5bd804988bcba Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 14 Dec 2022 23:51:12 +0100 Subject: [PATCH] hls muxer: ask credentials again after failed attemps --- internal/core/hls_muxer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/core/hls_muxer.go b/internal/core/hls_muxer.go index 2038a9a3..ee14596b 100644 --- a/internal/core/hls_muxer.go +++ b/internal/core/hls_muxer.go @@ -463,6 +463,9 @@ func (m *hlsMuxer) handleRequest(req *hlsMuxerRequest) func() *hls.MuxerFileResp return func() *hls.MuxerFileResponse { return &hls.MuxerFileResponse{ Status: http.StatusUnauthorized, + Header: map[string]string{ + "WWW-Authenticate": `Basic realm="rtsp-simple-server"`, + }, } } }