diff --git a/Explorer/Assets/DCL/WebRequests/GenericDownloadHandlerUtils.cs b/Explorer/Assets/DCL/WebRequests/GenericDownloadHandlerUtils.cs index 3e9033c89e..96b6090e2e 100644 --- a/Explorer/Assets/DCL/WebRequests/GenericDownloadHandlerUtils.cs +++ b/Explorer/Assets/DCL/WebRequests/GenericDownloadHandlerUtils.cs @@ -18,9 +18,6 @@ namespace DCL.WebRequests /// public static class GenericDownloadHandlerUtils { - private const string ORIGIN_HEADER_KEY = "Origin"; - private const string ORIGIN_HEADER_VALUE = "explorer"; - public delegate Exception CreateExceptionOnParseFail(Exception exception, string text); public static Adapter SignedFetchPostAsync( @@ -45,20 +42,9 @@ CancellationToken ct ); } - public static Adapter GetAsync( - this IWebRequestController controller, - CommonArguments commonArguments, - CancellationToken ct, - ReportData reportData, - WebRequestHeadersInfo? headersInfo = null, - WebRequestSignInfo? signInfo = null, - ISet? ignoreErrorCodes = null - ) - { - headersInfo ??= new WebRequestHeadersInfo(); - headersInfo.Value.Add(ORIGIN_HEADER_KEY, ORIGIN_HEADER_VALUE); // Probably in the future we will add this origin header also in the rest of requests - return new Adapter(controller, commonArguments, default(GenericGetArguments), ct, reportData, headersInfo, signInfo, ignoreErrorCodes, GET_GENERIC); - } + public static Adapter GetAsync(this IWebRequestController controller, CommonArguments commonArguments, CancellationToken ct, ReportData reportData, WebRequestHeadersInfo? headersInfo = null, + WebRequestSignInfo? signInfo = null, ISet? ignoreErrorCodes = null) => + new (controller, commonArguments, default(GenericGetArguments), ct, reportData, headersInfo, signInfo, ignoreErrorCodes, GET_GENERIC); public static Adapter PostAsync( this IWebRequestController controller,