diff --git a/MixItUp.Base/Model/Actions/WebRequestActionModel.cs b/MixItUp.Base/Model/Actions/WebRequestActionModel.cs index 356ed5875..91274e1d1 100644 --- a/MixItUp.Base/Model/Actions/WebRequestActionModel.cs +++ b/MixItUp.Base/Model/Actions/WebRequestActionModel.cs @@ -68,7 +68,7 @@ protected override async Task PerformInternal(CommandParametersModel parameters) httpClient.DefaultRequestHeaders.Add("Twitch-UserID", ServiceManager.Get()?.UserID ?? string.Empty); httpClient.DefaultRequestHeaders.Add("Twitch-UserLogin", ServiceManager.Get().Username ?? string.Empty); httpClient.DefaultRequestHeaders.Add("YouTube-UserID", ServiceManager.Get()?.UserID ?? string.Empty); - httpClient.DefaultRequestHeaders.Add("YouTube-UserLogin", ServiceManager.Get().Username ?? string.Empty); + httpClient.DefaultRequestHeaders.Add("YouTube-UserLogin", Uri.EscapeDataString(ServiceManager.Get().Username ?? string.Empty)); httpClient.DefaultRequestHeaders.Add("Trovo-UserID", ServiceManager.Get()?.UserID ?? string.Empty); httpClient.DefaultRequestHeaders.Add("Trovo-UserLogin", ServiceManager.Get().Username ?? string.Empty);