diff --git a/internal/service/stream.go b/internal/service/stream.go index 296e866..6153a4d 100644 --- a/internal/service/stream.go +++ b/internal/service/stream.go @@ -21,6 +21,7 @@ import ( "errors" "io" "net/http" + "net/url" "os" "path/filepath" "strings" @@ -68,6 +69,56 @@ func (s *StreamService) directPlayOnly(ctx context.Context) bool { return parseBoolSetting(v, false) } +// withAuthToken propagates the caller's auth token onto an internal redirect +// target. A browser