From 530d781a5c67353fc42883f49db27639308329d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kinasiewicz?= Date: Thu, 21 Jul 2022 15:19:52 +0200 Subject: [PATCH] Pass url to RequestModifier.modifyRequestHeader (#3995) --- src/streaming/net/FetchLoader.js | 2 ++ src/streaming/net/XHRLoader.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/streaming/net/FetchLoader.js b/src/streaming/net/FetchLoader.js index 0be29580f3..b35339ed01 100644 --- a/src/streaming/net/FetchLoader.js +++ b/src/streaming/net/FetchLoader.js @@ -86,6 +86,8 @@ function FetchLoader(cfg) { setRequestHeader: function (header, value) { headers.append(header, value); } + }, { + url: httpRequest.url }); } diff --git a/src/streaming/net/XHRLoader.js b/src/streaming/net/XHRLoader.js index 81d352479b..cd58bd7daf 100644 --- a/src/streaming/net/XHRLoader.js +++ b/src/streaming/net/XHRLoader.js @@ -65,7 +65,9 @@ function XHRLoader(cfg) { } if (requestModifier) { - xhr = requestModifier.modifyRequestHeader(xhr); + xhr = requestModifier.modifyRequestHeader(xhr, { + url: httpRequest.url + }); } if (httpRequest.headers) {