From 29df1165a8fe61dd421dac93432ebebe9889077d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Leszko?= Date: Tue, 6 Sep 2022 15:40:38 +0200 Subject: [PATCH] Add redirection to loadtester (and record-tester) --- internal/testers/m3utester2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testers/m3utester2.go b/internal/testers/m3utester2.go index 39537d3e..992d6462 100644 --- a/internal/testers/m3utester2.go +++ b/internal/testers/m3utester2.go @@ -651,7 +651,7 @@ func (mut *m3utester2) manifestPullerLoop(waitForTarget time.Duration) { } // glog.Infof("Parsed uri: %+v", pvrui, pvrui.IsAbs) if !pvrui.IsAbs() { - pvrui = mut.initialURL.ResolveReference(pvrui) + pvrui = resp.Request.URL.ResolveReference(pvrui) } if ms, has := mut.streams[res]; has { if ms.name != variant.URI && mut.followRename {