mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
try setting http version 1.0
This commit is contained in:
parent
5fdf8e6045
commit
88fccfd6cd
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,7 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
var requestMessage = new HttpRequestMessage
|
var requestMessage = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
|
Version = new Version(1, 0),
|
||||||
RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")),
|
RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")),
|
||||||
Method = HttpMethod.Post,
|
Method = HttpMethod.Post,
|
||||||
Content = new FormUrlEncodedContent(request.ToIdentityToken(_platformUtilsService.IdentityClientId))
|
Content = new FormUrlEncodedContent(request.ToIdentityToken(_platformUtilsService.IdentityClientId))
|
||||||
|
@ -305,6 +306,7 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
using(var requestMessage = new HttpRequestMessage())
|
using(var requestMessage = new HttpRequestMessage())
|
||||||
{
|
{
|
||||||
|
requestMessage.Version = new Version(1, 0);
|
||||||
requestMessage.Method = HttpMethod.Post;
|
requestMessage.Method = HttpMethod.Post;
|
||||||
requestMessage.RequestUri = new Uri(string.Concat(EventsBaseUrl, "/collect"));
|
requestMessage.RequestUri = new Uri(string.Concat(EventsBaseUrl, "/collect"));
|
||||||
var authHeader = await GetActiveBearerTokenAsync();
|
var authHeader = await GetActiveBearerTokenAsync();
|
||||||
|
@ -358,6 +360,7 @@ namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
using(var requestMessage = new HttpRequestMessage())
|
using(var requestMessage = new HttpRequestMessage())
|
||||||
{
|
{
|
||||||
|
requestMessage.Version = new Version(1, 0);
|
||||||
requestMessage.Method = method;
|
requestMessage.Method = method;
|
||||||
requestMessage.RequestUri = new Uri(string.Concat(ApiBaseUrl, path));
|
requestMessage.RequestUri = new Uri(string.Concat(ApiBaseUrl, path));
|
||||||
if(body != null)
|
if(body != null)
|
||||||
|
@ -423,6 +426,7 @@ namespace Bit.Core.Services
|
||||||
var decodedToken = _tokenService.DecodeToken();
|
var decodedToken = _tokenService.DecodeToken();
|
||||||
var requestMessage = new HttpRequestMessage
|
var requestMessage = new HttpRequestMessage
|
||||||
{
|
{
|
||||||
|
Version = new Version(1, 0),
|
||||||
RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")),
|
RequestUri = new Uri(string.Concat(IdentityBaseUrl, "/connect/token")),
|
||||||
Method = HttpMethod.Post,
|
Method = HttpMethod.Post,
|
||||||
Content = new FormUrlEncodedContent(new Dictionary<string, string>
|
Content = new FormUrlEncodedContent(new Dictionary<string, string>
|
||||||
|
|
Loading…
Reference in a new issue