From 88fccfd6cd82f92166ed83f70652338ff3965d42 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 5 Nov 2019 09:14:55 -0500 Subject: [PATCH] try setting http version 1.0 --- src/Core/Services/ApiService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Services/ApiService.cs b/src/Core/Services/ApiService.cs index d08252c16..78c5dc23c 100644 --- a/src/Core/Services/ApiService.cs +++ b/src/Core/Services/ApiService.cs @@ -85,6 +85,7 @@ namespace Bit.Core.Services { var requestMessage = new HttpRequestMessage { + Version = new Version(1, 0), RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")), Method = HttpMethod.Post, Content = new FormUrlEncodedContent(request.ToIdentityToken(_platformUtilsService.IdentityClientId)) @@ -305,6 +306,7 @@ namespace Bit.Core.Services { using(var requestMessage = new HttpRequestMessage()) { + requestMessage.Version = new Version(1, 0); requestMessage.Method = HttpMethod.Post; requestMessage.RequestUri = new Uri(string.Concat(EventsBaseUrl, "/collect")); var authHeader = await GetActiveBearerTokenAsync(); @@ -358,6 +360,7 @@ namespace Bit.Core.Services { using(var requestMessage = new HttpRequestMessage()) { + requestMessage.Version = new Version(1, 0); requestMessage.Method = method; requestMessage.RequestUri = new Uri(string.Concat(ApiBaseUrl, path)); if(body != null) @@ -423,6 +426,7 @@ namespace Bit.Core.Services var decodedToken = _tokenService.DecodeToken(); var requestMessage = new HttpRequestMessage { + Version = new Version(1, 0), RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")), Method = HttpMethod.Post, Content = new FormUrlEncodedContent(new Dictionary