diff --git a/iwa-console/ProtectedApiCallHelper.cs b/iwa-console/ProtectedApiCallHelper.cs index a121603..879d6b8 100644 --- a/iwa-console/ProtectedApiCallHelper.cs +++ b/iwa-console/ProtectedApiCallHelper.cs @@ -59,12 +59,12 @@ public async Task CallWebApiAndProcessResultAsync(string webApiUrl, string acces { if (!string.IsNullOrEmpty(accessToken)) { - var defaultRequetHeaders = HttpClient.DefaultRequestHeaders; - if (defaultRequetHeaders.Accept == null || !defaultRequetHeaders.Accept.Any(m => m.MediaType == "application/json")) + var defaultRequestHeaders = HttpClient.DefaultRequestHeaders; + if (defaultRequestHeaders.Accept == null || !defaultRequestHeaders.Accept.Any(m => m.MediaType == "application/json")) { HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); } - defaultRequetHeaders.Authorization = new AuthenticationHeaderValue("bearer", accessToken); + defaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", accessToken); HttpResponseMessage response = await HttpClient.GetAsync(webApiUrl); if (response.IsSuccessStatusCode)