mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
device-type header on login
This commit is contained in:
parent
6fe5e89ecc
commit
a4fbd521e3
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ using Plugin.Connectivity.Abstractions;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Bit.App.Enums;
|
using Bit.App.Enums;
|
||||||
|
using Bit.App.Utilities;
|
||||||
|
|
||||||
namespace Bit.App.Repositories
|
namespace Bit.App.Repositories
|
||||||
{
|
{
|
||||||
|
@ -38,6 +39,9 @@ namespace Bit.App.Repositories
|
||||||
Content = new FormUrlEncodedContent(requestObj.ToIdentityTokenRequest())
|
Content = new FormUrlEncodedContent(requestObj.ToIdentityTokenRequest())
|
||||||
};
|
};
|
||||||
|
|
||||||
|
requestMessage.Headers.Add("Device-Type", ((int)Helpers.OnPlatform(iOS: DeviceType.iOS,
|
||||||
|
Android: DeviceType.Android, Windows: DeviceType.UWP)).ToString());
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var response = await client.SendAsync(requestMessage).ConfigureAwait(false);
|
var response = await client.SendAsync(requestMessage).ConfigureAwait(false);
|
||||||
|
|
Loading…
Reference in a new issue